event_chart | R Documentation |
Inspired by Hmisc::event.chart()
event_chart(Data, shift = FALSE, scale = 1)
Data |
A data frame or data.table of dates, organized in the following way (the first two columns are plotted with a line segment, the remaining columns are plotted with a symbol):
|
shift |
Shift time so that 0 represents start of follow-up for everyone? (default: FALSE) |
scale |
If shifted, what units? (default: scale=1, meaning days) |
df <- read.csv(system.file("extdata/cdcaids.txt", package="breheny"))
event_chart(df, FALSE)
event_chart(df, TRUE)
event_chart(df, TRUE, 365.25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.