The R Project SVN R

Rev

Rev 61433 | Rev 66794 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 61433 Rev 65568
Line 1... Line 1...
1
% File src/library/grDevices/man/dev2bitmap.Rd
1
% File src/library/grDevices/man/dev2bitmap.Rd
2
% Part of the R package, http://www.R-project.org
2
% Part of the R package, http://www.R-project.org
3
% Copyright 1995-2012 R Core Team
3
% Copyright 1995-2014 R Core Team
4
% Distributed under GPL 2 or later
4
% Distributed under GPL 2 or later
5
 
5
 
6
\name{dev2bitmap}
6
\name{dev2bitmap}
7
\alias{dev2bitmap}
7
\alias{dev2bitmap}
8
\alias{bitmap}
8
\alias{bitmap}
Line 52... Line 52...
52
  environment variable \env{GSC} is used, otherwise commands
52
  environment variable \env{GSC} is used, otherwise commands
53
  \code{"gswi64c.exe"} then \code{"gswin32c.exe"} are tried.
53
  \code{"gswi64c.exe"} then \code{"gswin32c.exe"} are tried.
54
 
54
 
55
  The types available will depend on the version of \code{ghostscript},
55
  The types available will depend on the version of \code{ghostscript},
56
  but are likely to include
56
  but are likely to include
57
  \code{"pcxmono"}, \code{"pcxgray"}, \code{"pcx16"}, \code{"pcx256"},
-
 
58
  \code{"pcx24b"}, \code{"pcxcmyk"}, \code{"pbm"}, \code{"pbmraw"},
57
  \code{"jpeg"}, \code{"jpegcmyk"}, \code{"jpeggray"},
59
  \code{"pgm"}, \code{"pgmraw"}, \code{"pgnm"}, \code{"pgnmraw"},
-
 
60
  \code{"pnm"}, \code{"pnmraw"}, \code{"ppm"}, \code{"ppmraw"},
-
 
61
  \code{"pkm"}, \code{"pkmraw"}, \code{"tiffcrle"}, \code{"tiffg3"},
58
  \code{"tiffcrle"}, \code{"tiffg3"},
62
  \code{"tiffg32d"}, \code{"tiffg4"}, \code{"tifflzw"},
59
  \code{"tiffg32d"}, \code{"tiffg4"}, \code{"tiffgray"}, \code{"tifflzw"},
63
  \code{"tiffpack"}, \code{"tiff12nc"}, \code{"tiff24nc"}, \code{"tiff32nc"}
60
  \code{"tiffpack"}, \code{"tiff12nc"}, \code{"tiff24nc"}, \code{"tiff32nc"}
64
  \code{"psmono"}, \code{"psgray"}, \code{"psrgb"}, \code{"bit"},
61
  \code{"png16"}, \code{"png16m"}, \code{"png256"}, \code{"png48"},
65
  \code{"bitrgb"}, \code{"bitcmyk"}, \code{"pngmono"}, \code{"pnggray"},
62
  \code{"pngmono"}, \code{"pnggray"}, \code{"pngalpha"},
66
  \code{"pngalpha"}, \code{"png16"}, \code{"png256"}, \code{"png16m"},
63
  \code{"bmp16"}, \code{"bmp16m"} \code{"bmp256"}, \code{"bmp32b"},
67
  \code{"png48"}, \code{"jpeg"}, \code{"jpeggray"}, \code{"pdfwrite"}.
64
  \code{"bmpgray"}, \code{"bmpmono"}.
68
 
65
 
69
  The default type, \code{"png16m"}, supports 24-bit colour and
66
  The default type, \code{"png16m"}, supports 24-bit colour and
70
  anti-aliasing.  Versions of \R prior to 2.7.0 defaulted to
-
 
71
  \code{"png256"}, which uses a palette of 256 colours and could be a
67
  anti-aliasing.  Type \code{"png256"} uses a palette of 256 colours and
72
  more compact representation.  Monochrome graphs can use
68
  could give a more compact representation.  Monochrome graphs can use
73
  \code{"pngmono"}, or \code{"pnggray"} if anti-aliasing is desired.
69
  \code{"pngmono"}, or \code{"pnggray"} if anti-aliasing is desired.
74
  Plots with a transparent background and varying degrees of
70
  Plots with a transparent background and varying degrees of
75
  transparency should use \code{"pngalpha"}.
71
  transparency should use \code{"pngalpha"}.
76
 
72
 
77
  Note that for a colour TIFF image you probably want \code{"tiff24nc"},
73
  Note that for a colour TIFF image you probably want \code{"tiff24nc"},
Line 81... Line 77...
81
 
77
 
82
  For formats which contain a single image, a file specification like
78
  For formats which contain a single image, a file specification like
83
  \code{Rplots\%03d.png} can be used: this is interpreted by Ghostscript.
79
  \code{Rplots\%03d.png} can be used: this is interpreted by Ghostscript.
84
 
80
 
85
  For \code{dev2bitmap} if just one of \code{width} and \code{height} is
81
  For \code{dev2bitmap} if just one of \code{width} and \code{height} is
86
  specified, the other is chosen to preserve aspect ratio of the
82
  specified, the other is chosen to preserve the aspect ratio of the
87
  device being copied.  The main reason to prefer \code{method = "pdf"}
83
  device being copied.  The main reason to prefer \code{method = "pdf"}
88
  over the default would be to allow semi-transparent colours to be used.
84
  over the default would be to allow semi-transparent colours to be used.
89
 
85
 
90
  For graphics parameters such as \code{"cra"} that need to work in
86
  For graphics parameters such as \code{"cra"} that need to work in
91
  pixels, the default resolution of 72dpi is always used.
87
  pixels, the default resolution of 72dpi is always used.