simple_ellipse: Create a Hotelling T2 ellipse for a PCA score plot

View source: R/simple_ellipse.R

simple_ellipseR Documentation

Create a Hotelling T2 ellipse for a PCA score plot

Description

This function can be used to create a confidence (Hotelling T2) interval for a PCA score plot.

Usage

simple_ellipse(x, y, alpha = 0.95, len = 200)

Arguments

x

x vector

y

y vector

alpha

confidence interval

len

number of points to create the ellipse

Details

This is a helper function which is used to create a confidence (Hotelling T2) interval for a PCA score plot.

Value

A data frame is returned with the points to create the ellipse.

Author(s)

Rico Derks


ricoderks/Rcpm documentation built on May 18, 2022, 7:49 a.m.