qqPlot(y, x = "norm", ...,
xlab = if(is.numeric(x)) deparse(substitute(x)) else x,
ylab = deparse(substitute(y)), main = "Q-Q Plot",
type = "p", col = 1, lty = 2, lwd=1, pch=1, cex = 0.7,
plot.it = TRUE, confidence = .95,
qqline = c("observed", "expected", "none"))
x
(if non-numerical).FALSE
for no band.x
y
confidence
is specifiedx
is numeric, a two-sample test of the null hypothesis that x
and y
were drawn from the same continuous distribution is performed. Alternatively, x
can be a character string naming a continuous distribution function. In such a case, a one-sample test is carried out of the null that y
was draw from distribution x
with parameters specified by "...".ks.test
.par(mfrow=c(1,2))
x<- rnorm(200, mean=0.7,sd=2); y<- rnorm(200, sd=2)
qqPlot(y,x,qqline="exp")
qqPlot(y=y,x="norm",sd=2)
ks.test(x,y)
Run the code above in your browser using DataLab