Quickly visualizes an MD-PMS times series of class mds_ts
.
# S3 method for mds_ts
plot(x, mode = "nA", xlab = "Time", ylab = "Count", main = NULL, ...)
An object of class mds_ts
.
Series to plot. Valid values are: 'nA'
, 'nB'
,
'nC'
, 'nD'
, 'exposure'
, 'rate'
. 'rate'
is
simply 'nA' / 'exposure'
. See details for more.
Default: 'nA'
x-axis label
#' Default: 'Time'
y-axis label
Default: 'Count'
Plot title
Default: NULL
infers the title from x
and mode
.
Further arguments to pass onto plot()
generic.
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.
Counts of the device-event pair.
Counts of the device for all other events.
Counts of all other devices for the event.
Counts of all other devices for all other events.
Counts of exposure for the device-event pair.
A crude rate, calculated as the device-event counts pair divided by the exposure counts.