ps_convexHull: ps_convexHull

View source: R/ps_convexHull.R

ps_convexHullR Documentation

ps_convexHull

Description

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.


benmarwick/karon documentation built on July 29, 2023, 10:11 a.m.