Learn R Programming

circular (version 0.5-1)

pp.unif.plot: Uniform Circular Probability-Probability Plot

Description

Plots the empirical distribution of a data set against a uniform circular distribution function.

Usage

pp.unif.plot(x, ref.line = TRUE, frac = NULL,  xlab = "Uniform Distribution", 
  ylab = "Empirical Distribution", col = NULL,
  col.inf = NULL, col.sup = NULL, ...)

Arguments

x

a vector. The object is coerced to class circular.

ref.line

logical, if TRUE a 45 degree reference line is added to the plot. Default is TRUE.

frac

a number in the [0,1] interval or NULL.

xlab, ylab

labels of the axis.

col

color of the points.

col.inf, col.sup

color of the fraction of the points replicated in the left bottom and right upper corner of the plot.

...

parameters passed to the plot.default function.

Author

Claudio Agostinelli

See Also

pp.plot for the von Mises distribution.

Examples

Run this code
x <- rvonmises(n=25, mu=circular(0), kappa=3)
pp.unif.plot(x)
pp.unif.plot(x, frac=0.2)  

Run the code above in your browser using DataLab