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 |
mode |
Series to plot. Valid values are: Default: |
xlab |
x-axis label #' Default: |
ylab |
y-axis label Default: |
main |
Plot title Default: |
... |
Further arguments to pass onto |
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.