Description Usage Arguments Value Examples
View source: R/ellipseScatter.R
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.
1 | ellipseScatter(df, chi = 0.05)
|
df |
, a data frame of 2 continuous variables |
chi |
, the desired chi square quantile |
a scatter plot with an overlaid ellipse
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.