R: Plots a Yplant leaf file (a file with extension '.l' or...
plot.leaffile
R Documentation
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
## S3 method for class 'leaffile'
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.
Author(s)
Remko Duursma
See Also
readl
Examples
## 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)