Learn R Programming

Momocs (version 1.4.1)

layers_morphospace: Morphospace layers

Description

Used internally by plot_PCA, plot_LDA, etc. but may be useful elsewhere.

Usage

layer_morphospace_PCA(
  x,
  position = c("range", "full", "circle", "xy", "range_axes", "full_axes")[1],
  nb = 12,
  nr = 6,
  nc = 5,
  rotate = 0,
  size = 0.9,
  col = "#999999",
  flipx = FALSE,
  flipy = FALSE,
  draw = TRUE
)

layer_morphospace_LDA( x, position = c("range", "full", "circle", "xy", "range_axes", "full_axes")[1], nb = 12, nr = 6, nc = 5, rotate = 0, size = 0.9, col = "#999999", flipx = FALSE, flipy = FALSE, draw = TRUE )

Value

a drawing layer

Arguments

x

layered PCA or LDA. Typically, the object returned by plot_PCA and plot_LDA

position

one of range, full, circle, xy, range_axes, full_axes to feed morphospace_positions (default: range)

nb

numeric total number of shapes when position="circle" (default: 12)

nr

numeric number of rows to position shapes (default: 6)

nc

numeric number of columns to position shapes (default 5)

rotate

numeric angle (in radians) to rotate shapes when displayed on the morphospace (default: 0)

size

numeric size to use to feed coo_template (default: 0.9)

col

color to draw shapes (default: #999999)

flipx

logical whether to flip shapes against the x-axis (default: FALSE)

flipy

logical whether to flip shapes against the y-axis (default: FALSE)

draw

logical whether to draw shapes (default: TRUE)

See Also

Other grindr: drawers, layers, mosaic_engine(), papers, pile(), plot_LDA(), plot_NMDS(), plot_PCA()

Other grindr: drawers, layers, mosaic_engine(), papers, pile(), plot_LDA(), plot_NMDS(), plot_PCA()