View source: R/plot.triangle.psa.R
plot.triangle.psa | R Documentation |
Triangle plot showing the fitted values (propensity scores) for three different models.
## S3 method for class 'triangle.psa'
plot(
x,
point.alpha = 0.3,
point.size = 1.5,
legend.title = "Treatment",
text.size = 4,
draw.edges = FALSE,
draw.segments = TRUE,
edge.alpha = 0.2,
edge.color = "grey",
edge.labels = c("Model 1", "Model 2", "Model 3"),
sample = c(1),
...
)
x |
the results from [trips()]. |
point.alpha |
alpha level for points. |
point.size |
point size. |
legend.title |
title for the legend. |
text.size |
text size. |
draw.edges |
draw edges of the triangle. |
draw.segments |
draw segments connecting points across two models. |
edge.alpha |
alpha level for edges if drawn. |
edge.color |
the color for edges if drawn. |
edge.labels |
the labels to use for each edge of the triangle. |
sample |
a vector of length 1 or 3 representing the sample of points to plot.
The position of each element corresponds to the groups as returned
by |
... |
currently unused. |
ggplot2 figure
triangle.psa
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.