powered by
Computes the angle from two interlandmark vectors using the difference of their arguments using complex vectors (Claude, 2008).
landmarks_angle(x, unit = c("rad", "deg"))
A matrix with the angles for each landmark combination.
An object computed with landmarks().
landmarks()
The unit of the angle. Defaults to radian (rad). Use unit = "deg" to return the angles in degrees.
unit = "deg"
Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.
if(isTRUE(interactive())){ library(pliman) img <- image_pliman("potato_leaves.jpg") x <- landmarks(img) landmarks_angle(x) }
Run the code above in your browser using DataLab