Cairo              package:cairoDevice              R Documentation

_T_h_e _C_a_i_r_o _G_r_a_p_h_i_c_s _D_e_v_i_c_e

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

     Open an R graphics device based on the Cairo vector graphics
     library

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

       Cairo(width = 7, height = 7, pointsize = 10, surface = "screen", filename = NULL)
       Cairo_pdf(filename, width = 7, height = 7, pointsize = 10)
       Cairo_ps(filename, width = 7, height = 7, pointsize = 10)
       Cairo_svg(filename, width = 7, height = 7, pointsize = 10)
       Cairo_png(filename, width = 7, height = 7, pointsize = 10)

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

   width: The (initial) width in inches

  height: The (initial) height in inches

pointsize: The pointsize of the font

 surface: One of 'screen', 'pdf', 'ps', 'svg',  or 'png', indicating
          the cairo backend to use (the output format). If missing,
          inferred from extension of the 'filename' argument. 

filename: The output filename (used only by file surfaces, not the
          screen). If a file surface is specified but no filename is
          given, the filename defaults to Rplots.'SURFACE' where
          'SURFACE' is the name of the current surface type.

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

     Creates an R graphics device that draws to the specified Cairo
     surface.  By default, this will draw to a GTK+ window on the
     screen, but it also outputs to pdf, ps, png, and svg files,
     depending on the capabilities of your cairo installation.

     This functions the same as any other R graphics device. You may
     use the  conventional plot commands and expect essentially the
     same output,  except that everything is anti-aliased (similar to
     other vector-based  devices like Quartz). Alpha-blending is
     supported, as is enhanced interactivity via 'getGraphicsEvent'.
     The device should work the same across all supported platforms
     (Mac, Windows, and Linux).

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

     Michael Lawrence

_R_e_f_e_r_e_n_c_e_s:

     <URL: http://www.cairographics.org/>

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

     'asCairoDevice' for embedding the device in an RGtk2 interface.

