Learn R Programming

PreProcess (version 3.1.7)

graph.utility: OOMPA graphical utility functions

Description

Utility functions for graphics.

Usage

ellipse(a, b, x0=0, y0=0, ...)
f.qq(x, main="", cut=0, ...)
f.qt(x, df, main="", cut=0, ...)

Arguments

a

Half the length of the elliptical axis in the x-direction

b

Half the length of the elliptical axis in the y-direction

x0

X-coordinate of the center of the ellipse

y0

Y-coordinate of the center of the ellipse

main

A text string

cut

A real number

df

An integer; the number of degrees of freedom in the t-test

...

Additional graphical parameters passed on to lower-level functions

x

A numeric vector

Author

Kevin R. Coombes krc@silicovore.com

Details

The ellipse function draws an ellipse on an existing plots. The ellipses produced by this function 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 vector x with a T-distribution.

See Also

Examples

Run this code
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)

Run the code above in your browser using DataLab