Learn R Programming

scmSpillover (version 0.1.1)

qplot_all: Quick plot all three main plots in sequence

Description

Quick plot all three main plots in sequence

Usage

qplot_all(
  result,
  start_year = NULL,
  unit_name = "Treated Unit",
  outcome_label = "Outcome",
  treatment_label = "Treatment",
  show_ci = TRUE,
  pause = TRUE
)

Value

List of ggplot objects (invisibly)

Arguments

result

Output from run_scm_spillover

start_year

First year of treatment period

unit_name

Name of treated unit (default "Treated Unit")

outcome_label

Label for outcome variable (default "Outcome")

treatment_label

Label for treatment (default "Treatment")

show_ci

Logical, whether to show confidence bands (default TRUE)

pause

Logical, whether to pause between plots (default TRUE)