dihedral {leafSTAR}R Documentation

Calculate the dihedral angle between two planes

Description

Calculate the minimum angle between two non-orthogonal planes, such as the angle describing leaf torsion, the angle between two halves of conduplicate or plicate leaves, the angle between the petiole and the branch, between two leaves and between two branches.

Usage

dihedral(plane1, plane2, Ahmes = FALSE, ID = NULL, pitch1, roll1, course1,
  pitch2, roll2, course2, horiz = TRUE)

Arguments

plane1, plane2

Objects of class data.frame containing the angles of plane1 and plane2 and row labels.

Ahmes

Logical. Do data come from 'Ahmes'? Defaults to FALSE

ID

An optional vector with the labels of the observations. Defaults to NULL.

pitch1, pitch2

Numeric. The name of the variables containing the pitch angles of planes 1 and 2 in degrees. See details.

roll1, roll2

Numeric. The name of the variables containing the roll angles of planes 1 and 2 in degrees. See details.

course1, course2

Numeric. The name of the variables containing the course angles of planes 1 and 2 in degrees. See details.

horiz

Logical. Set the position of the start (zero, 0) of pitch, roll and tilt angle data. horiz = F indicates the zero is located at zenith. This is the reference system used by Ahmes. horiz = T indicates the start is at the horizon. To use tilt in further calculations (star, sal...), angle data should be expressed in the horizontal reference system (0 = horizon). Defaults to TRUE.

Details

pitch values span from 0 to 180 degrees. If horiz = TRUE (default) 0 and 180 refer to the flat horizontal surface and 90 refers to the flat vertical surface. If horiz = FALSE 0 and 180 refer to the flat vertical surface and 90 refers to the flat horizontal surface.

roll values span from 0 to 180 degrees.

course values span from 0 (North) to 360 degrees, clockwise. Course is the angle between north and the horizontal projection of a normal vector to the surface.

For a graphical explanation of leaf angles, see Fig. 2 in Escribano-Rocafort et al. (2014).

Author(s)

Agustina Ventre-Lespiaucq and Silvia Santamaria Bueno.

References

dihedral Santalo, L.A. (1970). Vectores y tensores con sus aplicaciones. p. 61, 8 Edicion. EUDEBA (eds), Buenos Aires, Argentina.

Escribano-Rocafort, A.G., Ventre-Lespiaucq, A.B., Granado-Yela, C., Lopez-Pintor, A., Delgado, J.A., Munoz, V., Dorado, G.A., Balaguer, L. (2014). Simplifying data acquisition in plant canopies- Measurements of leaf angles with a cell phone. Methods in Ecology and Evolution 5:132-140. doi:10.1111/2041-210X.12141.

orchids Ventre-Lespiaucq, A.B., Delgado, J.A., Ospina-Calderon, N.H., Otero, J.T., Escudero, A., Sanchez, M.A., Balaguer, L., Flanagan, N.S. (2017). A tropical epiphytic orchid uses a low-light interception strategy in a spatially heterogeneous light environment. Biotropica, 49:318-327. doi:10.1111/btp.12425.

Examples

data(orchids)
  pseudobulbs<-subset(orchids,organ=="pseudobulb") #subset
  leaves<-subset(orchids,organ=="leaf")
  dihedral(plane1=pseudobulbs,plane2=leaves,Ahmes=FALSE,ID=NULL,pitch1=pseudobulbs$pitch,
  roll1=pseudobulbs$roll,course1=pseudobulbs$course,pitch2=leaves$pitch,roll2=leaves$roll,
  course2=leaves$course,horiz=FALSE)  
#dihedral()

[Package leafSTAR version 1.0 Index]