plot_covariate_balance_pretrend.Rd
This function visualizes the covariate balance over the pre-treatment period. It's particularly designed for outputs from methods like PanelMatch.
A matrix containing the covariate balance data over the pre-treatment period.
A numeric vector of length 2 defining the y-axis limits.
A ggplot2 theme. By default, it uses causalverse::ama_theme()
.
A string indicating the label for the x-axis.
A string indicating the label for the y-axis.
A string for the main title of the plot.
A string for the legend title.
A logical; if TRUE, the legend is displayed, otherwise, it's hidden.
Additional arguments passed to the ggplot labs.
A ggplot2 object.