Learn R Programming

MVN (version 4.0.2)

uniPlot: Univariate Plots

Description

This function creates univariate plots, including Q-Q plot, histogram, box-plot and scatterplot matrices.

Usage

uniPlot(data, type = c("qqplot", "histogram", "box", "scatter"), mfrow = NULL, ...)

Arguments

data
a vector, data frame or matrix
type
select one of the univariate plots: qqplot: Q-Q plot, histogram: histogram with a normal curve, box: box-plot and scatter: scatterplot matrice
mfrow
multi-paneled plotting window
...
optional arguments

Details

Box-Plots are based on standardized values, variables are centered and scaled before plotting. qqplot is default.

See Also

mardiaTest roystonTest hzTest mvnPlot mvOutlier uniNorm

Examples

Run this code
setosa = iris[1:50, 1:4] # Iris data only for setosa and four variables
uniPlot(setosa, type = "qqplot")

Run the code above in your browser using DataLab