powered by
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, ...)
Filename
one out of "tif", "pdf", "eps", "bmp", "png", "jpg"
the width of the graphic in cm.
the height of the graphic in cm.
The units in which height and width are given. Can be px (pixels), in (inches), cm (the default) or mm.
height
width
px
in
cm
mm
the resolution
logical. Should the graphic be opened after having being created?
the type of compression to be used (tif only).
the plot expression
the dots are sent to the specified device function.
A simple convenience wrapper for producing TIF-Files for publication.
tiff, pdf, postscript
tiff
pdf
postscript
# NOT RUN { PlotDev(fn="bar", type="tiff", expr= barplot(1:5, col=Pal("Helsana")) ) # }
Run the code above in your browser using DataLab