save a ggplot object into a file
1 2 3 4 | save_ggplot(dataset_string = "mtcars-32",
ggstr = "ggplot(iris) + geom_point(aes(Sepal.Width, Sepal.Length))",
conf = list(aes = c("x=cyl", "y=mpg"), non_aes = c(), geom_list = "point"),
argv = c("png", "200*500", "'my-file-name'", "my_plot_dir"))
|
dataset_string |
A character. Used as a directory. |
ggstr |
A list of aesthetics |
conf |
A list of aesthetics, non-aesthetics and geoms |
argv |
A character vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.