Description Usage Arguments Examples
This function will display and save a ggplot figure.
1 2 | ggsave_for_docs(fig, plot.dir, plot.name, height, width, save.fig,
save.format)
|
fig |
ggplot object |
plot.dir |
string, name of directory for output file |
plot.name |
string, desired name for plot file |
height |
numeric, height of plot in inches |
width |
numeric, width of plot in in inches |
save.fig |
logical, whether plot figure will be saved or not |
save.format |
string, "svg", "png", "emf" |
1 2 3 4 5 6 7 | ggsave_for_docs(fig = my_plot,
plot.dir = "plot_directory/",
plot.name = "my_plot",
height = 4,
width = 6,
save.fig = T,
save.format = "png")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.