ellipseScatter: EllipseScatter

Description Usage Arguments Value Examples

View source: R/ellipseScatter.R

Description

This function will produce a scatterplot of the 2 variables. An ellipse determined by the covariance matrix is overlaid on top of the scatter plot. To form the ellipse we turn to the covariance matrix. The length of the major axis is the square root of the first eigenvalue of the covariance matrix and the direction is determined by the associated eigenvector. Similarly, the length of the mainor axis is the square root of the second eigenvalue of the covariance matrix and the direction is determined by the associated eigenvector.

Usage

1
ellipseScatter(df, chi = 0.05)

Arguments

df

, a data frame of 2 continuous variables

chi

, the desired chi square quantile

Value

a scatter plot with an overlaid ellipse

Examples

1
2

s-huebler/rotateS21 documentation built on Dec. 22, 2021, 8:21 p.m.