plot.UnDiDObj: Plot method for 'UnDiDObj'

View source: R/undid_stage_three.r

plot.UnDiDObjR Documentation

Plot method for UnDiDObj

Description

Plot method for UnDiDObj

Usage

## S3 method for class 'UnDiDObj'
plot(
  x,
  event = FALSE,
  event_window = NULL,
  ci = 0.95,
  lwd = 1,
  legend = "topright",
  ...
)

Arguments

x

A UnDiDObj object

event

Logical. If TRUE, creates an event study plot. If FALSE (default), creates a parallel trends plot.

event_window

Numeric vector of length 2 specifying the event window as c(start, end). Default is NULL (use all available periods).

ci

Numeric between 0 and 1 specifying confidence level. Default is 0.95.

lwd

Linewidth arg passed to lines(), abline(), and segments(). Defaults to 1.

legend

Keywords for indicating desired legend location. Defaults to "topright". Other options include any of the keywords used as x in legend(x, ...) or NULL to omit a legend.

...

other arguments passed to plot


undidR documentation built on Feb. 17, 2026, 1:06 a.m.