View source: R/swimplot_eumelareg.R
swimplot_eumelareg | R Documentation |
This function plots a default EuMelaReg swimmerplot using ggplot
.
swimplot_eumelareg(
data,
ID,
end,
response.start = NULL,
response.end = NULL,
response.type = NULL,
stack.groups = TRUE,
continued.response = NULL,
durable.response = NULL,
strat = NULL,
symbol.size = 5,
xlab = NULL,
ylab = NULL
)
data |
data.frame or data.table containing response data. Each event of response has to be defined in an own row. Data for Response type, durable response, ongoing treatment and treatmend end have to entered in the respective columns. |
ID |
column name that contains subject IDs. |
end |
column name that contains time after which the subject died or was lost to follow-up. |
response.start |
column that contains time after index date (e.g. diagnosis, treatment start) with documented response. |
response.end |
column that contains time after index date with documented end of response. |
response.type |
column that contains information whether patient had complete or partial response. |
stack.groups |
logical value indicating whether subjects should only be sorted by time or also stacked into groups defined by the strat argument. Default is TRUE. |
continued.response |
column that contains (logical) value whether response is ongoing or not. |
durable.response |
column containing (logical) value whether response was durable (equal to or longer than six months). |
strat |
grouping factor. Color of bars are colored accordingly. |
symbol.size |
size of symbols indicating response types |
xlab |
label of x-axis |
ylab |
label of y-axis |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.