dev2bitmap               package:base               R Documentation

_C_o_p_y _G_r_a_p_h_i_c_s _D_e_v_i_c_e _t_o _B_i_t_m_a_p _F_i_l_e

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

     Copy the current graphics device to a file in a bitmap graphics
     format.

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

     dev2bitmap(file, type = "png256", height = 6, width = 6, res = 72,
                pointsize, ...)

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

    file: The putput file name, with an appropriate extension.

    type: The type of bitmap. the default is `"png256"'.

  height: The plot height, in inches.

   width: The plot width, in inches.

     res: Resolution, in dots per inch.

pointsize: The pointsize to be used for text: defaults to something
          reasonable given the width and height

     ...: Other parameters passes to `postscript'.

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

     `dev2bitmap' works by copying the current device to a `postscript'
     device, and post-processing the output file using `ghostscript'. 
     You will need a recent version of `ghostscript' (5.10 and later
     have been tested): the full path to the executable can be set by
     the environment variable `"R_GSCMD"'.

     The types available will depend on the version of `ghostscript',
     but are likely to include `"pcxmono"', `"pcxgray"', `"pcx16"',
     `"pcx256"', `"pcx24b"', `"pcxcmyk"', `"pbm"', `"pbmraw"', `"pgm"',
     `"pgmraw"', `"pgnm"', `"pgnmraw"', `"pnm"', `"pnmraw"', `"ppm"',
     `"ppmraw"', `"pkm"', `"pkmraw"', `"tiffcrle"', `"tiffg3"',
     `"tiffg32d"', `"tiffg4"', `"tifflzw"', `"tiffpack"', `"tiff12nc"',
     `"tiff24nc"', `"psmono"', `"psgray"', `"psrgb"', `"bit"',
     `"bitrgb"', `"bitcmyk"', `"pngmono"', `"pnggray"', `"png16"',
     `"png256"', `"png16m"', `"jpeg"', `"jpeggray"', `"pdfwrite"'.

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

     None.

_W_a_r_n_i_n_g:

     This is experimental and may be withdrawn in favour of an
     equivalent device in a later version.

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

     B. D. Ripley

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

     `postscript'

