Learn R Programming

MVN (version 6.1)

plot.mvn: Plot Diagnostics for Multivariate Normality Analysis

Description

Generates diagnostic plots for objects of class mvn, including multivariate Q-Q plots, 3D or contour kernel density plots, univariate plots (e.g., Q-Q, histograms, boxplots), and multivariate outlier detection plots. If a grouping variable (subset) was used in the mvn function, plots will be generated separately for each group.

Usage

# S3 method for mvn
plot(x, ...)

Value

This function is called for its side effect of producing plots. It does not return a value.

Arguments

x

An object of class mvn, as returned by the mvn function.

...

Additional arguments passed to internal plotting functions: diagnostic ("multivariate", "univariate", "outlier"), type (e.g., "qq", "boxplot", "persp"), interactive (logical; use plotly), and

Examples

Run this code
if (FALSE) {
data <- iris[1:4]
result <- mvn(data)

plot(result, diagnostic = "multivariate", type = "qq")
plot(result, diagnostic = "univariate", type = "boxplot")
plot(result, diagnostic = "outlier")
}

Run the code above in your browser using DataLab