ggSave | R Documentation |
Define los parámetros de ggplot2::ggsave
.
ggSave(
p,
name,
ext = ".png",
width = 8000,
height = 4500,
unit = "px",
dpi = 720,
type = "cairo",
...
)
p |
Un gráfico ggplo2. |
name |
Character. La ruta y nombre del gráfico. |
ext |
Character. La extensión. Por defecto '.png'. |
width |
Numeric. Por defecto 8000. |
height |
Numeric. Por defecto 4500. |
unit |
Character. Por defecto "px". |
dpi |
Numeric. Por defecti 720. |
type |
Character. Por defecto "cairo". |
... |
Otros argumentos que reciba la función |
Exporta el gráfico.
p <- ggplot2::ggplot( data = mtcars, ggplot2::aes( disp, mpg ) ) + ggplot2::geom_point()
ggSave( p, 'Graficos/migrafico' )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.