Learn R Programming

mdapack (version 0.0.2)

univariateAnalysis: A univariateAnalysis Function

Description

This function produces univariate plots including histogram with density plot, box plot, q-q plot, and calculate the Shapiro-Wilk statistic for numeric data.

Usage

univariateAnalysis(
  dat,
  hist = FALSE,
  boxplot = FALSE,
  qqnorm = FALSE,
  shapiro = FALSE
)

Arguments

dat

data in data.frame format

hist

a plot of histogram

boxplot

a box plot showing distribution of the variable

qqnorm

a qnantile quantile plot

shapiro

a Shapiro-Wilk normality test.

Value

Return plots from univariate analysis.

Examples

Run this code
# NOT RUN {
data(iris)
univariateAnalysis (iris, qqnorm  = TRUE)
# }

Run the code above in your browser using DataLab