
Last chance! 50% off unlimited learning
Sale ends in
irates
objects. For each covariate value, multistate-type graphics will be displayed, i.e., plots with transition arrows from the initial event to each competing event, where the thickness describes the particular amount of every incidence rate. Full sample graphics might also be plotted.
"plot"(x, covar.code = NULL, full.sample = FALSE, n.row = 1, viewport.size = list(w = 3.5, h = 2.5),
box.size = list(w = NULL, h = NULL), dist = 0.5, irates.vbw = NULL, arrow.maxlwd = 10, display.digits = 2, cex = 0.9, show.values = TRUE, mark = NULL, mark.col = "red", main = "", main.dist = 0.4,
main.gp = gpar(cex = 1.2), ...)
irates
object
irates
shall be printed. If NULL
, covar.code
will be inherited from irates
logical
value that specifies if results of irates
shall also be printed for the full sample, i.e., irrespective of any covariate value. Default is set to FALSE
list(w, h)
to set the width (w) and height (h) of the viewport. Default is w= 3.5, h = 2.5
list(w, h)
to set the width (w) and height (h) of the box(es) for each event. If NULL
, w and h will be determined automatically corresponding to the specified event.lab
in irates
NULL
, irates.vbw
will be determined automatically corresponding to display.digits
logical
value specifying if incidence rate values shall be plotted or not. Default is TRUE
event.code
with logical values specifying if and which transition arrow shall be marked with a certain color. Defaults to NULL
irates
#########################
### Pneumonia on admission data: sir.adm
data(sir.adm)
agg.sir <- data.reshape(
times = sir.adm$time,
events = sir.adm$status,
covar = sir.adm$pneu,
no.event.code = "0")
### Compute irates object from dat
ir1 <- irates(agg.sir)
### Plot multistate-type graphic from irates object
plot(ir1)
#########################
### Compute irates object with certain labels
ir2 <- irates(
agg.sir,
no.event.lab = "Admission",
event.lab = c("Discharge","Death"),
covar.lab = c("No pneumonia","Pneumonia"))
### Plot multistate-type graphic from irates object
plot(ir2)
#########################
### ONKO-KISS data: okiss
data(okiss)
### Aggregate individual patient data
agg.okiss <- data.reshape(
times = okiss$time,
events = okiss$status,
covar = okiss$allo,
no.event.code = "11")
### Plot multistate-type graphic from irates object
plot(irates(agg.okiss,
no.event.lab = "Neutropenia",
event.lab = c("Infection","End of\n Neutropenia","Death"),
covar.lab = c("Autologous","Allogenic")
),
viewport.size = list(w = 4.5, h = 2.5)
)
Run the code above in your browser using DataLab