Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ggdid.MP

Plot MP objects using ggplot2


Description

A function to plot MP objects

Usage

## S3 method for class 'MP'
ggdid(
  object,
  ylim = NULL,
  xlab = NULL,
  ylab = NULL,
  title = "Group",
  xgap = 1,
  ncol = 1,
  legend = TRUE,
  ...
)

Arguments

object

either a MP object or AGGTEobj object

ylim

optional y limits for the plot; settng here makes the y limits the same across different plots

xlab

optional x-axis label

ylab

optional y-axis label

title

optional plot title

xgap

optional gap between the labels on the x-axis. For example, xgap=3 indicates that the labels should show up for every third value on the x-axis. The default is 1.

ncol

The number of columns to include in the resulting plot. The default is 1.

legend

Whether or not to include a legend (which will indicate color of pre- and post-treatment estimates). Default is TRUE.

...

other arguments


did

Treatment Effects with Multiple Periods and Groups

v2.0.0
GPL-2
Authors
Brantly Callaway [aut, cre], Pedro H. C. Sant'Anna [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.