This function will construct a normal Q-Q plot within the ggplot2 framework. It combines the functionality of qqnorm and qqline.

ggplot_qqnorm(x, line = NULL, ...)

Arguments

x

a numeric vector

line

the method used to fit a reference line. If no reference line is desired, leave the value as NULL. line = "rlm" will use robust regression to fit a reference line. line = "quantile" will fit a line through the first and third quartiles. These options are the same as those given for the qqPlot function in the car package.

...

other arguments to be passed to qplot()

See also

Author

Adam Loy loyad01@gmail.com