How to resize ggplot graph in r notebook

tmhs picture tmhs · Nov 23, 2016 · Viewed 8.2k times · Source

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.

Answer

Jacob picture Jacob · Nov 23, 2016

Your chunk should start with something like:

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