I want to resize ggplot graph in Rnotebook.
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.
Therefore, ggplot2 graphics are often included in my R Markdown documents. Features of both packages are highly flexible and you CAN always get what you want !
In RStudio, when you open a new RMarkdown file, in the editor pane, there is a cogwheel button / menu where you can choose "Chunk Output Inline". That should put the plots into the document.
ggplot2 is a plotting package that provides helpful commands to create complex plots from data in a data frame. It provides a more programmatic interface for specifying what variables to plot, how they are displayed, and general visual properties.
Your chunk should start with something like:
{r, fig.width = 12, fig.height = 12}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With