Description Usage Arguments Details Examples
Make a Q-Q plot
1 2 3 4 5 6 7 8 9 |
residuals |
Numeric vector, the residuals of the analysis. |
lower |
Numeric vector, lower confidence interval of each residual. If NULL, no error bars are drawn. |
upper |
Numeric vector, lower confidence interval of each residual. If NULL, no error bars are drawn. |
abline |
Logical, should an abline be drawn through the origin? |
ablineColor |
String, color of the abline. |
xName |
String, name for the x-axis. |
yName |
String, name for the y-axis. |
This function is equivalent to qqnorm(residuals); qqline(residuals)
, but uses ggplot2
and allows for confidence bands.
1 2 3 4 5 6 | x <- rnorm(100)
jaspGraphs::plotQQnorm(x)
# add a confidence interval for each point
lower <- x - .1
upper <- x + .1
jaspGraphs::plotQQnorm(x, lower, upper)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.