Description Usage Arguments Value Author(s) See Also Examples
Transform all leaf edge coordinates onto a viewplane coordinate system, with the 'z' axis pointing toward the viewer.
1 2 3 4 |
plant |
Object of class 'plant3d' (see |
azimuth,altitude |
Azimuth and altitude from which plant is viewed. |
x |
Object of class 'projectedplant3d'. |
silhouette |
Add a 2D convex hull (see |
xlim,ylim |
Limits for the X and Y axes. |
leaffill |
If TRUE, fills leaves with green stuff. |
leafcol |
If leaffill=TRUE, the color of the leaves. |
zerocenter |
Whether to shift the plant to X=0 and Y=0. |
xlab,ylab |
Labels for X and Y axes |
... |
Further parameters passed to plot() (but ignored for print). |
Returns an object of class 'projectedplant3d', with components:
leaves |
A list of matrices with the coordinates of the leaf edges. Each matrix has columns VX,VY and VZ, which are the viewplane coordinates (with the Z axis pointing toward the viewer). |
viewbound |
List of min and max values of coordinates (minx, maxx, miny, etc.). |
viewangle |
Azimuth and altitude used for projection. |
Remko Duursma
1 2 3 4 5 | # View a plant from above.
# The 2D convex hull is also plotted (the 'silhouette'),
# and the area of the hull is printed on the graph.
topview <- projectplant(pilularis, altitude=90, azimuth=180)
plot(topview, leaffil=TRUE, silhouette=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.