Calculates nice positions on a plane for drawing shapes
Source:R/gr-morphospaces.R
morphospace_positions.RdCalculates nice positions on a plane for drawing shapes
Usage
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
)Arguments
- 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:
rangeof xy,fullextent of the plane,circleas a rosewind, onxyvalues provided,range_axeson the range of xy but on the axes,full_axessame thing but on (0.85) range of the axes. You can also directly pass a matrix (or a data.frame) with columns named("x", "y").- 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
Details
See plot.PCA for self-speaking examples