How do i get my plotly bar graph to display in R Studio?

Hello,
I am having trouble getting my Plotly chart to display in R Studio. I need to understand what code I should use. Any help is much appreciated.

Hi @dpaniagua

Have you tried running through https://plot.ly/r/getting-started/?