graph.utility {PreProcess} | R Documentation |
Utility functions for graphics.
ellipse(a, b, ...) f.qq(x, main = "", cut = 0, ...) f.qt(x, df, main = "", cut = 0, ...)
a |
Half the length of the elliptical axis in the x-direction |
b |
Half the length of the elliptical axis in the y-direction |
main |
Atext string |
cut |
A real number |
df |
An integer; the number of degrees of fredom in the t-test |
... |
Additional graphical parameters passed on to lower-level functions |
x |
A numeric vector |
The ellipse
function draws an ellipse on an existing plots.
The ellipses produced by this function are centered at the origin and
are oriented with their major and minor axes parallel to the
coordinate axes. The current implementation uses points
internally.
The function f.qq
is a wrapper that combines qqnorm
and
qqline
into a single function call.
The function f.qt
is a wrapper that produces quantile-quantile
plots comparing the observed vectror x
with a T-distribution.
Kevin R. Coombes <kcoombes@mdanderson.org>
See also points
x <- rnorm(1000, 1, 2) y <- rnorm(1000, 1, 2) plot(x,y) ellipse(1, 1, col=6, type='l', lwd=2) ellipse(3, 2, col=6, type='l', lwd=2) f.qq(x, main='Demo', col='blue') f.qq(x, cut = 3) f.qt(x, df = 3) f.qt(x, df = 40)