QQline | R Documentation |
Adds a QQ-line for the values in x in the current plot.
QQline(x, ...)
x |
The sample for QQ-line |
... |
Graphical parameters |
The intercept and the slope of the QQ-line are returned
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.
library(robcbi)
data(Finney)
Vol <- Finney$Vol; Rate <- Finney$Rate; Resp <- Finney$Resp
lVol <-log(Vol); lRate <- log(Rate)
z.cub <- glm(Resp~lVol+lRate,family=binomial,method="cubinf", ufact=3.2)
x <- residuals(z.cub, type="deviance")
## Not run:
qqnorm(x, ylab = "Deviance Residuals")
QQline(x, lty = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.