Learn R Programming

dowser (version 2.2.0)

treesToPDF: Simple function for plotting a lot of trees into a pdf

Description

treesToPDF exports trees to a pdf in an orderly fashion

Usage

treesToPDF(plots, file, nrow = 2, ncol = 2, ...)

Value

a PDF of tree plots

Arguments

plots

list of tree plots (from plotTrees)

file

output file name

nrow

number of rows per page

ncol

number of columns per page

...

optional arguments passed to grDevices::pdf

See Also

plotTrees

Examples

Run this code
if (FALSE) {
data(ExampleClones)
trees <- getTrees(ExampleClones[10,])
plots <- plotTrees(trees)
treesToPDF(plots,"test.pdf",width=5,height=6)
}

Run the code above in your browser using DataLab