visualise_qqplot: Visualise a normal QQ-plot for a given vector

Description Usage Arguments Value See Also Examples

Description

Plots a normal qq-plot for a given vector. This function utilises ggplot2 to design and plot the Visualisation. The plots can also be saved to a specified directory. Original code by Aaron (2010) - https://stackoverflow.com/questions/4357031/qqnorm-and-qqline-in-ggplot2/

Usage

1

Arguments

vector

A vector to be visualise

directory

A character object specifying the directory where the data frame is to be saved as a .csv file.

Value

Outputs a variety of bar charts or histograms

See Also

visualise_residuals, visualise_variables_x, visualise_variables_xx

Examples

1
2
3
4
5
6
# Example Data
x <- rnorm(n = 600, mean = 50, sd = 10)
mod <- lm(data = iris, Sepal.Length ~ .)
# Visualise the residuals of the model
visualise_qqplot(vector = x)
visualise_qqplot(vector = mod$residuals)

oislen/BuenaVista documentation built on May 16, 2019, 8:12 p.m.