Last data update: 2014.03.03

R: Plot Empirical Distribution Function
plot.edfR Documentation

Plot Empirical Distribution Function

Description

Plots the empirical distribution function of a data set.

Usage

## S3 method for class 'edf'
plot(x, ...)

Arguments

x

vector of circular data measured in radians.

...

optional graphical parameters. See help section on par.

Details

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

Note

Creates a plot of the empirical distribution function of the vector data.

See Also

par

Examples

# Compare the edf's of two simulated sets of data.
data1 <- rvm(10, 0, 3)
data2 <- rvm(10, 0, 1)
plot.edf(data1, xlab="Data", ylab="EDF", main="Plots of Two EDF's")
par(new=TRUE)
plot.edf(data2, axes=FALSE, xlab="", ylab="", lty=2)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(CircStats)
Loading required package: MASS
Loading required package: boot
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/CircStats/plot.edf.Rd_%03d_medium.png", width=480, height=480)
> ### Name: plot.edf
> ### Title: Plot Empirical Distribution Function
> ### Aliases: plot.edf
> ### Keywords: hplot
> 
> ### ** Examples
> 
> # Compare the edf's of two simulated sets of data.
> data1 <- rvm(10, 0, 3)
> data2 <- rvm(10, 0, 1)
> plot.edf(data1, xlab="Data", ylab="EDF", main="Plots of Two EDF's")
> par(new=TRUE)
> plot.edf(data2, axes=FALSE, xlab="", ylab="", lty=2)
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>