An ad hoc wrapper for stats::density() + graphics::polygon() / graphics::points(). Used internally for projecting scatterpoints into univariate morphospaces.

plot_univ_scatter(scores, density, col = 1, bg = 1, pch = 1, cex = 1, ...)

Arguments

scores

a matrix of (x,y) coordinates to plot.

density

Logical; whether to plot density curve.

col

Color of the scatterpoints.

bg

Background color for the scatterpoints.

pch

Symbol of the scatterpoints.

cex

Numeric; size of the scatterpoints.

...

Further arguments passed to graphics::points().