time_tiles | R Documentation |
This function creates a time tiles plot visualizing when and which units are affected by an intervention. Each tile represents a unit at a specific time point, with the color indicating the treatment status.
time_tiles(data, time, id, status)
data |
A data frame containing the input data. |
time |
The name of the time period variable (as a string). |
id |
The name of the unit identifier variable (as a string). |
status |
The name of the variable that identifies the treatment status (as a string). |
A ggplot object displaying the time tiles plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.