I'm using Plotly (ggplotly) in my rmarkdown file. The width of the plot is larger than the content, see attached screenshot.
As you can see the legend is outside the content.
Can I fix this using CSS, if so, how?
Asked
Active
Viewed 39 times
0

Viðar Ingason
- 265
- 3
- 11
1 Answers
0
I just found out that I had set a default fig.width and fig.height in knitr::opts_chunk() which caused this.

Viðar Ingason
- 265
- 3
- 11