width,height
the width and height of the graphics region in
inches. The default values are 7
.
onefile
logical: if true (the default) allow multiple figures
in one file. If false, generate a file with name containing the page
number for each page. Defaults to TRUE
, and forced to true
if file
is a pipe.
family
the font family to be used, see
postscript
. Defaults to "Helvetica"
.
fonts
a character vector specifying R graphics font family
names for additional fonts which will be included in the PDF file.
Defaults to NULL
.
version
a string describing the PDF version that will be
required to view the output. This is a minimum, and will be
increased (with a warning) if necessary. Defaults to "1.4"
,
but see ‘Details’.
paper
the target paper size. The choices are
"a4"
, "letter"
, "legal"
(or "us"
) and
"executive"
(and these can be capitalized), or "a4r"
and "USr"
for rotated (‘landscape’).
The default is "special"
, which means that the width
and height
specify the paper size. A further choice is
"default"
; if this is selected, the
papersize is taken from the option "papersize"
if that is set and as "a4"
if it is unset or empty.
Defaults to "special"
.
encoding
the name of an encoding file. See
postscript
for details. Defaults to "default"
.
bg
the initial background color to be used. Defaults to
"transparent"
.
fg
the initial foreground color to be used. Defaults to
"black"
.
pointsize
the default point size to be used. Strictly
speaking, in bp, that is 1/72 of an inch, but approximately in
points. Defaults to 12
.
pagecentre
logical: should the device region be centred on the
page? – is only relevant for paper != "special"
.
Defaults to TRUE
.
colormodel
a character string describing the color model:
currently allowed values are "srgb"
, "gray"
(or
"grey"
) and "cmyk"
. Defaults to "srgb"
. See section
‘Color models’.
useDingbats
logical. Should small circles be rendered
via the Dingbats font? Defaults to FALSE
.
If TRUE
, this can produce smaller and better output, but
there can font display problems in broken PDF viewers: although this
font is one of the 14 guaranteed to be available in all PDF viewers,
that guarantee is not always honoured.
For Unix-alikes (including macOS) see the ‘Note’ for a
possible fix for some viewers.
useKerning
logical. Should kerning corrections be included in
setting text and calculating string widths? Defaults to TRUE
.
fillOddEven
logical controlling the polygon fill mode: see
polygon
for details. Defaults to FALSE
.
compress
logical. Should PDF streams be generated with Flate
compression? Defaults to TRUE
.