plotQQnorm.Rd
Make a Q-Q plot
Numeric vector, the residuals of the analysis.
Numeric vector, lower confidence interval of each residual. If NULL, no error bars are drawn.
Numeric vector, lower confidence interval of each residual. If NULL, no error bars are drawn.
Logical, should an abline be drawn that best fits the points?
Logical, should an abline be drawn through the origin?
String, color of the abline.
Logical, should the axes have the same range?
Logical, should NA's be removed from residuals?
String, name for the x-axis.
String, name for the y-axis.
This function is equivalent to qqnorm(residuals); qqline(residuals)
, but uses ggplot2
and allows for confidence bands.
x <- rnorm(100)
jaspGraphs::plotQQnorm(x)
# add a confidence interval for each point
lower <- x - .1
upper <- x + .1
jaspGraphs::plotQQnorm(x, lower, upper)