powered by
This function produces univariate plots including histogram with density plot, box plot, q-q plot, and calculate the Shapiro-Wilk statistic for numeric data.
univariateAnalysis( dat, hist = FALSE, boxplot = FALSE, qqnorm = FALSE, shapiro = FALSE )
data in data.frame format
a plot of histogram
a box plot showing distribution of the variable
a qnantile quantile plot
a Shapiro-Wilk normality test.
Return plots from univariate analysis.
# NOT RUN { data(iris) univariateAnalysis (iris, qqnorm = TRUE) # }
Run the code above in your browser using DataLab