Skip to contents

A house-style plot of hr_dag(). Time runs left to right; the heart-rate confounders sit on top, the two drug doses below, and death on the right. Edges are coloured by the role they play: the estimand (drug -> death, purple), the mediator the drug creates (drug1 -> HR1, dashed orange), and every backdoor / confounding / persistence path (grey). HR1 is ringed to flag that it is at once caused by treatment and a confounder of later treatment.

Usage

plot_dag()

Value

A ggplot2::ggplot() object.

Examples

# \donttest{
plot_dag()

# }