savePlotAsImage | R Documentation |
Save the plot currently displayed in the Plots pane as an image.
savePlotAsImage(
file,
format = c("png", "jpeg", "bmp", "tiff", "emf", "svg", "eps"),
width,
height
)
file |
The target file path. |
format |
The Image format. Must be one of ("png", "jpeg", "bmp", "tiff", "emf", "svg", or "eps"). |
width |
The image width, in pixels. |
height |
The image height, in pixels. |
The savePlotAsImage
function was introduced in RStudio 1.1.57.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.