SaveFigure | R Documentation |
This is ggsave Wrapper function with defaiults so we don't have to keep entering everything in ggsave.
SaveFigure(
folder,
filename,
figure,
format = ".png",
width = 15,
height = 10,
units = "cm",
...
)
folder |
Character string for the folder where figure will be saved. |
filename |
Character string specifiying the file name. |
figure |
ggplot object. |
format |
String specifying the file format of the figure. Default ".png". |
width |
Saved plot width. Default is 15 cm. |
height |
Saved plot height. Default 10 cm. |
units |
String specifying units for plot dimension. Default centimetres. |
... |
Additional ggsave inputs. |
None. Saves file in specified directory.
Richard T Gray, Rgray@kirby.unsw.edu.au
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.