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
UnDiDObjobject- event
Logical. If
TRUE, creates an event study plot. IfFALSE(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(), andsegments(). Defaults to1.- legend
Keywords for indicating desired legend location. Defaults to
"topright". Other options include any of the keywords used as x inlegend(x, ...)orNULLto omit a legend.- ...
other arguments passed to plot