Compute the corners of a convex hull and plot the hull: used in ps_pcaEvaluation()
Usage
ps_convexHull(data, groupVar, hullGroup)
Arguments
- data
R matrix or data frame containing the data to be analyzed
- groupVar
The name for variable defining grouping; a group variable is required
- hullGroup
A code defining the group for which a hull is to be plotted
Value
The function returns a matrix with the points defining the corners of the
convex hull.
Details
The function assumes that the data frame data (an argument) contains group codes in
GroupVar and two principal components, named pc1 and pc2.