Learn R Programming

activity (version 1.1)

plot,actmod-method: Plot activity distribution

Description

Plot an activity probability distribution from a fitted actmod object.

Usage

# S4 method for actmod
plot(x, xunit = c("hours", "radians"),
  yunit = c("frequency", "density"), dat = c("histogram", "rug", "none"),
  add = FALSE, dcol = 1, lcol = 2, ...)

Arguments

x

Object of class actmod.

xunit

Character string defining x-axis unit.

yunit

Character string defining y-axis unit.

dat

Character string defining whether to plot the data distribution and if so which style to use.

add

Logical defining whether to create a new plot (default) or add the probability density to an existing plot (in which case no data are plotted).

dcol

Numeric or character defining colour of data lines.

lcol

Numeric or character defining colour of PDF lines.

...

Additional arguments passed to internal plot call affecting only axes.