moderndid.plots.plot_agg#
- moderndid.plots.plot_agg(result: AGGTEResult | DDDAggResult, show_ci: bool = True, ref_line: float | None = 0, xlab: str | None = None, ylab: str | None = None, title: str | None = None, **_kwargs: Any) ggplot[source]#
Create plot for aggregated treatment effects by group or calendar time.
- Parameters:
- result
AGGTEResultorDDDAggResult Aggregated treatment effect result with group or calendar aggregation.
- show_cibool, default=True
Whether to show confidence intervals as error bars.
- ref_line
floatorNone, default=0 Y-value for reference line. Set to None to hide.
- xlab
str, optional X-axis label. Defaults based on aggregation type.
- ylab
str, optional Y-axis label. Defaults to “ATT”.
- title
str, optional Plot title. Defaults based on aggregation type.
- result
- Returns:
plotnine.ggplotA plotnine ggplot object that can be further customized.