View source: R/ps_convexHull.R
ps_convexHull | R Documentation |
Compute the corners of a convex hull and plot the hull: used in ps_pcaEvaluation()
ps_convexHull(data, groupVar, hullGroup)
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 |
The function returns a matrix with the points defining the corners of the convex hull.
The function assumes that the data frame data (an argument) contains group codes in GroupVar and two principal components, named pc1 and pc2.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.