View source: R/gr-morphospaces.R
morphospace_positions | R Documentation |
Calculates nice positions on a plane for drawing shapes
morphospace_positions(
xy,
pos.shp = c("range", "full", "circle", "xy", "range_axes", "full_axes")[1],
nb.shp = 12,
nr.shp = 6,
nc.shp = 5,
circle.r.shp
)
xy |
a matrix of points typically from a PCA or other multivariate method on which morphospace can be calculated |
pos.shp |
how shapes should be positionned: |
nb.shp |
the total number of shapes |
nr.shp |
the number of rows to position shapes |
nc.shp |
the number of cols to position shapes |
circle.r.shp |
if circle, its radius |
See plot.PCA for self-speaking examples
a data.frame of positions
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.