graph2pdf {lazy.tools}R Documentation

Output the Graphics to PDF Device

Description

Output the Graphics to PDF Device

Usage

graph2pdf(outpdf, close = 0, paper = "a4r", height = 5, width = 9,
  onefile = TRUE, ...)

Arguments

outpdf

The output pdf file name.

close

= 1 to close the pdf device.

paper

Size of the pdf paper.

height

Height of the pdf paper.

width

WIdth of the pdf paper.

onefile

= FLASE to create many files.

...

Other arguments to native pdf function.

Details

This function calls native pdf function as:
pdf(outpdf, paper=paper, height=height, width=width , onefile=onefile, ... )

Examples

## Not run: 
plot(-5:5,(-5:5)^2, type="l", main="square")
plot(-5:5,(-5:5)^3, type="l", main="cubic")
graph2pdf("testestestestext.pdf")
plot(-5:5,(-5:5)^2, type="l", main="square")
plot(-5:5,(-5:5)^3, type="l", main="cubic")
graph2pdf("testestestestext.pdf", close=1)

## End(Not run)


[Package lazy.tools version 0.1.3 Index]