save_pdf | R Documentation |
Convenient function to save charts in PDF format.
save_pdf(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 "PDF"
file
Other save:
save_eps()
# 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_pdf(fig_raw,file.name = paste0(tempdir(),"/figura.pdf"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.