| PlotDev {DescTools} | R Documentation |
Plot to a graphics device.
PlotDev(fn, type = c("tif", "pdf", "eps", "bmp", "png", "jpg"),
width = NULL, height = NULL, units="cm", res = 300, open = TRUE,
compression = "lzw", expr, ...)
fn |
Filename |
type |
one out of "tif", "pdf", "eps", "bmp", "png", "jpg" |
width |
the width of the graphic in cm. |
height |
the height of the graphic in cm. |
units |
The units in which |
res |
the resolution |
open |
logical. Should the graphic be opened after having being created? |
compression |
the type of compression to be used (tif only). |
expr |
the plot expression |
... |
the dots are sent to the specified device function. |
A simple convenience wrapper for producing TIF-Files for publication.
Andri Signorell <andri@signorell.net>
## Not run:
PlotDev(fn="bar", type="tiff", expr=
barplot(1:5, col=Pal("Helsana"))
)
## End(Not run)