Description Usage Arguments Examples
Saves standard plots for publication either as EPS, PNG with 300dpi or PDF Allows specific maximum dimensions with an optional target aspect ratio. If no aspect ratio supplied then plot will be shaped to occupy whole area
1 2 3 4 5 6 7 | saveFigure(
plot,
filename,
maxWidth,
maxHeight,
aspectRatio = maxWidth/maxHeight
)
|
plot |
a GGplot object or none |
filename |
base of target filename (excuding extension). |
maxWidth |
maximum width in inches |
maxHeight |
maximum height in inches |
aspectRatio |
defaults to maxWidth/maxHeight |
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.