## Not run:
# # Construct a plant like this:
# # myplant <- constructplant("somepfile.p","aleaf.l")
#
# # Standard plot (using built-in sugar maple):
# plot(sugarmaple)
#
# # Add a convex hull.
# plot(sugarmaple, addcrownhull=TRUE)
#
# # Plot two plants in one scene (second plant is moved 750mm in the x-direction)
# plot(sugarmaple)
# plot(sugarmaple, shiftxyz=c(750,0,0), add=TRUE)
#
# # Mark the first 10 leaves in red (i.e. first 10 leaves in P file):
# plot(sugarmaple, markleaves=1:10)
#
# # Mark all leaves on the plant that have a leaf angle > 45.
# plot(toona, markleaves=which(toona$leafdata$ang > 45))
#
# # Plot the stems (and branches) only:
# plot(pilularis, noleaves=TRUE)
#
# # Plot many plants.
# # First organize a 'leafplantkey', a comma-separated file that links each pfile to an lfile.
# # See the online manual for an example, or the help file for 'constructplant'.
# myplants <- readplantlist(lpk="leafplantkey.txt")
# plot(myplants, png=TRUE, addfilename=TRUE)
#
# ## End(Not run)
Run the code above in your browser using DataLab