plot.mds_ts {mds}R Documentation

Plot MD-PMS Time Series

Description

Quickly visualizes an MD-PMS times series of class mds_ts.

Usage

## S3 method for class 'mds_ts'
plot(x, mode = "nA", xlab = "Time", ylab = "Count", main = NULL, ...)

Arguments

x

An object of class mds_ts.

mode

Series to plot. Valid values are: 'nA', 'nB', 'nC', 'nD', 'exposure', 'rate'. 'rate' is simply 'nA' / 'exposure'. See details for more.

Default: 'nA'

xlab

x-axis label

#' Default: 'Time'

ylab

y-axis label

Default: 'Count'

main

Plot title

Default: NULL infers the title from x and mode.

...

Further arguments to pass onto plot() generic.

Details

mode values defined as follows. Note: The following definitions use a device-event pair as a working example, however it may also be a covariate-device pair.

'nA'

Counts of the device-event pair.

'nB'

Counts of the device for all other events.

'nC'

Counts of all other devices for the event.

'nD'

Counts of all other devices for all other events.

'exposure'

Counts of exposure for the device-event pair.

'rate'

A crude rate, calculated as the device-event counts pair divided by the exposure counts.


[Package mds version 0.3.2 Index]