Description Usage Arguments Value Examples
This is most useful for setting image dimensions in Rmd code chunks. It will display text to copy for the code chunk only when running interactively.
1 | plot_size(plot = ggplot2::last_plot(), dpi = webmorph_options("dpi"))
|
plot |
Plot to measure, defaults to last plot displayed. |
dpi |
Plot resolution for determining size in inches (usually 300 for print and 72 for screen) |
invisibly returns a list of plot width and height in pixels
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.