Computes and plots a peeled hull around a set of points onto a current graphics device.
peeledHull(
data_matrix,
x_axis = 1,
y_axis = 2,
percentage = 1,
col = "black",
lwd = 3,
lty = 1
)
A set of data you would like to plot on 2 dimensions (e.g., a scatter plot). Can be original data or factor scores or anything with at least 2 columns.
Which axis is the x-axis? Default is 1.
Which axis is the y-axis? Default is 2.
The percentage of points that should be enveloped by the hull.
The color of the hull (see col in plot()).
The thickness of the hull line (see lwd in plot())
The line type (see lty in plot()).
Derek Beaton turned Michael Greenacre's code into a function.
Greenacre, M. J. (2007). Correspondence Analysis in Practice. Chapman and Hall.