Learn R Programming

circular (version 0.1)

plot.edf: Plot Circular Empirical Distribution Function

Description

Plots the empirical distribution function of a circular data set.

Usage

## S3 method for class 'edf':
plot(x, type = "s", xlim = c(0, 2 * pi), ylim = c(0, 1), ...)
## S3 method for class 'edf':
lines(x, type = "s", \dots)

Arguments

x
vector of circular data measured.
type, xlim, ylim
plotting parameters with useful defaults.
...
optional graphical parameters. See help section on par.

Details

The vector of data is taken modulo 2*pi, and then the linear ranks are used to generate an empirical distribution function.

See Also

par

Examples

Run this code
# Compare the edf's of two simulated sets of data.
data1 <- rvonmises(n=10, mu=0, kappa=3)
data2 <- rvonmises(n=10, mu=0, kappa=1)
plot.edf(data1, xlab="Data", ylab="EDF", main="Plots of Two EDF's")
lines.edf(data2, lty=2, col=2)

Run the code above in your browser using DataLab