time_tiles: Time Tiles Plot of Intervention Impact

View source: R/time_tiles.R

time_tilesR Documentation

Time Tiles Plot of Intervention Impact

Description

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.

Usage

time_tiles(data, time, id, status)

Arguments

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).

Value

A ggplot object displaying the time tiles plot.


bsynth documentation built on June 25, 2024, 5:08 p.m.