plot.ecdf.circular: Plot an empirical cumulative distribution function for a...

Description Usage Arguments Value Author(s) References See Also Examples

Description

Plot an empirical cumulative distribution function for a circular data set.

Usage

1
2
3
4
5
6
## S3 method for class 'ecdf.circular'
plot(x, xlim = c(0, 2 * pi), ylim = NULL,
  xlab = "x", ylab = "Fn(x)", main = NULL, add = FALSE,
  verticals = FALSE, col.01line = "gray70", do.points = (n < 1000),
  pch = 19, col = par("col"), col.points = col, cex.points = par("cex"),
  col.hor = col, col.vert = col, lty = par("lty"), lwd = par("lwd"), ...)

Arguments

x

an object of class ecdf.circular or a numeric vector of class circular.

xlim, ylim

limits for the plot region: see plot.window. Both have sensible defaults if omitted.

xlab, ylab

labels for x and y axis.

main

main title.

add

logical; if TRUE only add to an existing plot.

verticals

logical; if TRUE, draw vertical lines at steps.

col.01line

numeric or character specifying the color of the horizontal lines at y = 0 and 1, see colors.

do.points

logical; if TRUE, also draw points at the (xlim restricted) knot locations. Default is true, for sample size < 1000.

pch

character or integer code; point character if do.points.

col

default color of all points and lines.

col.points

character or integer code; color of points if do.points.

cex.points

numeric; character expansion factor if do.points.

col.hor

color of horizontal lines.

col.vert

color of vertical lines.

lty, lwd

line type and thickness for all lines.

...

further arguments of plot(.), or if(add) segments(.).

Value

A list with two components

t

abscissa (x) values, including the two outermost ones.

y

y values ‘in between’ the t[].

Author(s)

Claudio Agostinelli

References

K.V. Mardia and P.E. Jupp (2000). Directional Statistics. Wiley.

See Also

ecdf.circular.

Examples

1
2
3
x <- rvonmises(10, circular(0), 5)
plot(ecdf(x))
plot(ecdf(x), xlim=c(-20,20))    

Example output

Attaching package: 'circular'

The following objects are masked from 'package:stats':

    sd, var

circular documentation built on May 2, 2019, 4:42 p.m.