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'

