

   dev2bitmap {base}                            R Documentation

   CCooppyy GGrraapphhiiccss DDeevviiccee ttoo BBiittmmaapp FFiillee

   DDeessccrriippttiioonn::

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

   UUssaaggee::

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

   AArrgguummeennttss::

       file: The putput file name, with an appropriate exten-
             sion.

       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Deettaaiills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 ver-
        sion 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"', `"pcx-
        cmyk"', `"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Vaalluuee::

        None.

   WWAARRNNIINNGG::

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

   AAuutthhoorr((ss))::

        B. D. Ripley

   SSeeee AAllssoo::

        `postscript'

