ggsave                package:ggplot                R Documentation

_g_g_s_a_v_e

_D_e_s_c_r_i_p_t_i_o_n:

     Save a ggplot with sensible defaults

_U_s_a_g_e:

     ggsave(plot = .PLOT, filename=default_name(plot), device=default_device(filename), scale=1, width=par("din")[1], height=par("din")[2], grid="normal", dpi=96, ...)

_A_r_g_u_m_e_n_t_s:

    plot: plot to save

filename: file name/path of plot

  device: device to use, automatically extract from file name extension

   scale: scaling factor

   width: width (in inches)

  height: height (in inches)

    grid: grid to use, normal for white on pale grey, print for pale
          grey on white

     dpi: dpi to use for raster graphics

     ...: other arguments passed to device function

_D_e_t_a_i_l_s:

_A_u_t_h_o_r(_s):

     Hadley Wickham <h.wickham@gmail.com>

_E_x_a_m_p_l_e_s:

