View source: R/utils_landmarks.R
landmarks_regradi | R Documentation |
Select n
landmarks that are spaced with a regular sequence of angles taken
between the outline coordinates and the centroid.
landmarks_regradi(
x,
n = 50,
close = TRUE,
plot = TRUE,
ncol = NULL,
nrow = NULL
)
x |
A |
n |
Number of points to be sampled. Defaults to 50. |
close |
Return a closed polygon? Defaults to |
plot |
Create a plot? Defaults to |
ncol, nrow |
The number of rows or columns in the plot grid when a |
A list with the following objects:
pixindices
: Vector of radius indices.
radii
: Vector of sampled radii lengths.
Xc
: The centroid coordinate of x
axis.
Yc
: The centroid coordinate of y
axis.
coords
: Coordinates of sampled points arranged in a two-column matrix.
If x
is a list, a list of objects described above is returned.
Borrowed from Claude (2008), pp. 53
Claude, J. (2008) Morphometrics with R, Use R! series, Springer 316 pp.
library(pliman)
plot_polygon(contours[[1]])
ldm <- landmarks_regradi(contours)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.