pdf {pdf2}R Documentation

PDF Graphics Device with Pop-up Strings and Hyperlinks

Description

This device offers extended functionality for the PDF device allowing to embed Pop-up Strings and Hyperlinks for the rect, text and mtext functions.

Usage

pdf(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), width, height, onefile, family, title, fonts, version, paper, encoding, bg, fg, pointsize, pagecentre)
pdf2(file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf"), width, height, onefile, family, title, fonts, version, paper, encoding, bg, fg, pointsize, pagecentre)

Arguments

file a character string giving the name of the file. For use with onefile=FALSE give a C integer format such as "Rplot%03d.pdf" (the default in that case). (See postscript for further details.)
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 wiht name containing the page number for each page. Defaults to TRUE.
family the font family to be used, see postscript. Defaults to "Helvetica".
title title string to embed as the /Title field in the file. Defaults to "R Graphics Output".
fonts a character vector specifying R graphics font family names for 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 "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.

Details

pdf2 is offered as a synonym for pdf.

More details on the functionality of the pdf device can be found in the help page of pdf, which is only extended in the pdf2 package.

Author(s)

Tadashi Kadowaki, R Development Core Team and contributors worldwide

See Also

See pdf for more on the PDF device, and rect, text and mtext for the details of how to add pop-up strings and hyperlinks.


[Package pdf2 version 2.7.1.3 Index]