plot.edf {circular} | R Documentation |
Plots the empirical distribution function of a circular data set.
## 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", ...)
x |
vector of circular data measured. |
type, xlim, ylim |
plotting parameters with useful defaults. |
... |
optional graphical parameters. See help section on par . |
The vector of data is taken modulo 2*pi, and then the linear ranks are used to generate an empirical distribution function.
Creates a plot or adds a plot (lines.edf
) of the empirical
distribution function of the circular data vector.
Claudio Agostinelli and Ulric Lund
# 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)