svg(filename = if(onefile) "Rplots.svg" else "Rplot%03d.svg", width = 7, height = 7, pointsize = 12, onefile = FALSE, family = "sans", bg = "white", antialias = c("default", "none", "gray", "subpixel"))
cairo_pdf(filename = if(onefile) "Rplots.pdf" else "Rplot%03d.pdf", width = 7, height = 7, pointsize = 12, onefile = FALSE, family = "sans", bg = "white", antialias = c("default", "none", "gray", "subpixel"), fallback_resolution = 300)
cairo_ps(filename = if(onefile) "Rplots.ps" else "Rplot%03d.ps", width = 7, height = 7, pointsize = 12, onefile = FALSE, family = "sans", bg = "white", antialias = c("default", "none", "gray", "subpixel"), fallback_resolution = 300)
PATH_MAX
characters long, and may be truncated if not.
See postscript
for further details.) Tilde expansion
is performed where supported by the platform."sans"
, "serif"
and "mono"
, or a character
string specify a font family to be searched for in a
system-dependent way.
unix
See, the Cairo fonts section in the help for X11
.
"default"
.image
plots, and so is never used for
fills. antialias = "default"
is in principle platform-dependent, but
seems most often equivalent to antialias = "gray"
.svg
) or inches.
svg
is SVG version 1.1 for onefile = FALSE
(the default), otherwise
SVG 1.2. (Few SVG viewers are capable of displaying multi-page SVG
files.) Note that unlike postscript
and pdf
,
cairo_pdf
and cairo_ps
sometimes record bitmaps
and not vector graphics. On the other hand, they can
(on suitable platforms) include a much wider range of UTF-8 glyphs,
and embed the fonts used.
The output produced by cairo_ps(onefile = FALSE)
will be
encapsulated postscript on a platform with cairo >= 1.6.
R can be compiled without support for any of these devices: this will be reported if you attempt to use them on a system where they are not supported. They all require cairo version 1.2 (from 2006) or later.
If you plot more than one page on one of these devices and do not
include something like %d
for the sequence number in
file
(or set onefile = TRUE
) the file will contain the
last page plotted.
There is full support of semi-transparency, but using this is one of
the things liable to trigger bitmap output (and will always do so for
cairo_ps
).
Devices
, dev.print
, pdf
,
postscript
capabilities
to see if cairo is supported.