Learn R Programming

DataVisualizations (version 1.1.12)

QQplot: QQplot with a Linear Fit

Description

Qantile-quantile plot with a linear fit

Usage

QQplot(X,Y,xlab ='X', ylab='Y',col="red",main='',...)

Arguments

X

[1:n] numerical vector, First Feature

Y

1:n] numerical vector, Second Feature to compare first feature with

xlab

x label, see plot ...

ylab

y label, see plot

col

color of line, see plot

main

title of plot, see plot

other parameters for qqplot

Value

List with

Residuals

Output ofresiduals.lm(line)

Summary

Output ofsummaryline)

Anova

Output ofanova(line)

Details

Output is the evaluation of a linear fit of lm called 'line' and a quantile quantile plot (QQplot).

References

Michael, J. R.: The stabilized probability plot, Biometrika, Vol. 70(1), pp. 11-17, 1983.