save_eps | R Documentation |
Convenient function to save charts in Eps format.
save_eps(gplot, file.name, ...)
gplot |
ggplot which will be saved. |
file.name |
Character. Name of the file which will be generated |
... |
Additional arguments to be passed to the |
An "eps"
file
Other save:
save_pdf()
# Creating theme for ggplot2 graph using default arguments
library(ggplot2)
fig_raw <- ggplot() +
geom_col(data = mtcars, aes(x = hp , y = mpg, fill = cyl)) +
theme_ipea()
# Save ggplot output
save_eps(fig_raw,file.name = paste0(tempdir(),"/figura.eps"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.