time_tiles {bsynth}R 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.


[Package bsynth version 1.0 Index]