savePlot              package:grDevices              R Documentation

_S_a_v_e _C_a_i_r_o _X_1_1 _P_l_o_t _t_o _F_i_l_e

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

     Save the current page of a cairo 'X11()' device to a file.

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

     savePlot(filename = paste("Rplot", type, sep="."),
              type = c("png", "jpeg", "tiff", "bmp"),
              device = dev.cur())

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

filename: filename to save to.

    type: file type: only '"png"' will be accepted for cairo version
          1.0.

  device: the device to save from.

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

     Only 'X11' devices of types '"cairo"' and '"nbcairo"' are
     supported.

     This works by copying the image surface to a file.  For PNG will
     always be a 24-bit per pixel PNG 'DirectClass' file, for JPEG the
     quality is 75% and for TIFF there is no compression.

     At present the plot is saved after rendering onto the canvas
     (default opaque white), so for the default 'bg = "transparent"'
     the effective background colour is the canvas colour.

_V_a_l_u_e:

     Invisible 'NULL'.

_S_e_e _A_l_s_o:

     'X11', 'dev.copy', 'dev.print'

