qqmat | R Documentation |
qqmat plots Mahalanobisdistances of a given sample against those expected from a Gaussian distribution
qqmat(x, output = FALSE, square = FALSE)
x |
sample data: matrix or vector |
output |
logical: if TRUE results are returned |
square |
plot in a square window - outliers might be cut off. |
if output=TRUE
, the following values are returned
x |
distances from an expected Gaussian distribution |
y |
observed distances - sorted |
d |
observed distances - unsorted |
Stefan Schlager
qqplot
require(MASS)
### create normally distributed data
data <- mvrnorm(100,mu=rep(0,5),Sigma = diag(5:1))
qqmat(data)
###create non normally distributed data
data1 <- rchisq(100,df=3)
qqmat(data1,square=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.