ggSave: Exportar los gráficos

View source: R/ggSave.R

ggSaveR Documentation

Exportar los gráficos

Description

Define los parámetros de ggplot2::ggsave.

Usage

ggSave(
  p,
  name,
  ext = ".png",
  width = 8000,
  height = 4500,
  unit = "px",
  dpi = 720,
  type = "cairo",
  ...
)

Arguments

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 ggplot2::ggsave.

Value

Exporta el gráfico.

Examples


p <- ggplot2::ggplot( data = mtcars, ggplot2::aes( disp, mpg ) ) + ggplot2::geom_point()

ggSave( p, 'Graficos/migrafico' )


octmedina/ksnet documentation built on April 18, 2023, 3:34 p.m.