Description Usage Arguments Details Value Author(s) Examples
Reads leaf angles (angle, orientation or azimuth) from a plant file (a Yplant
input file with extension .p
, known as a pfile
).
1 | getangles(plant, whichangle = "An.3")
|
plant |
An object of class |
whichangle |
The name of the angle, in quotes (see
|
If the leaf angle is returned (An.3, the default), all angles are converted so that they are between 0 and 90 degrees. A warning is printed when any angle > 360, which may indicate problems in the data (this is uncommon).
Other angles may be read, see modifypfile
for a list of the
angles in a pfile.
A vector of angles (in degrees).
Remko Duursma
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# Two options:
# Get leaf angles from a pfile
ang <- getangles("someplant.p")
# Or from a constructed plant:
myplant <- constructplant("someplant.p","someleaf.l")
ang <- getangles(myplant)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.