Loess plot with density distributions for propensity scores and outcomes on top and right, respectively.
gg_loess(x, response, treatment, responseTitle = "", treatmentTitle = "Treatment", percentPoints.treat = 0.2, percentPoints.control = 0.1, points.treat.alpha = 0.2, points.control.alpha = 0.1, ...)
x | vector of propensity scores. |
---|---|
response | the response variable. |
treatment | the treatment varaible as a logical type. |
responseTitle | the label to use for the y-axis (i.e. the name of the response variable) |
treatmentTitle | the label to use for the treatment legend. |
percentPoints.treat | the percentage of treatment points to randomly plot. |
percentPoints.control | the percentage of control points to randomly plot. |
points.treat.alpha | the transparency level for treatment points. |
points.control.alpha | the transparency level for control points. |
... | other parameters passed to |
a ggplot2 figure