Search code examples
rplotggplot2r-markdownrnotebook

How to resize ggplot graph in r notebook


I want to resize ggplot graph in Rnotebook.

enter image description here

It's too big it doesn't show anything like above. When I export it and increase the size about 4 times bigger, then it shows the details.

I've attempted the followings: set_plot_options fig.height, fig.width

to resize the graph but it didn't apply.

Please share if you have knowledge of how to resize plots.


Solution

  • Your chunk should start with something like:

    {r, fig.width = 12, fig.height = 12}