Learn R Programming

YplantQMC (version 0.6-6)

plot.leaffile: Plots a Yplant leaf file (a file with extension .l or .lf) in 2D.

Description

Produces a plot of a Yplant leaf file, read in using readl.

Usage

"plot"(x, nleaf = 1, edgepoints = TRUE, edgecex = 0.8, ...)

Arguments

x
Object of class 'leaffile'.
nleaf
Which leaf to plot in the leaf file (if more than one leaf available in the file).
edgepoints
Logical. If TRUE, plots dots on the leaf edge coordinates.
edgecex
If edgepoint=TRUE, cex (i.e. size) of the leaf edge dots.
...
Further parameters passed to plot.default.

See Also

readl

Examples

Run this code


## Not run: 
# 
# # Read and plot a leaf in one go, select a leaf from a menu.
# plot(readl())
# 
# # Make a pdf of all leaf files in the current working directory:
# leaffiles <- list.files(pattern="\\.l$", ignore.case=TRUE)
# pdf("Leaf files.pdf", onefile=TRUE)
# for(i in 1:length(leaffiles))plot(readl(leaffiles[i]))
# dev.off()
# 
# 
# ## End(Not run)

Run the code above in your browser using DataLab