plotCovariateBalanceScatterPlot | R Documentation |
Create a scatterplot of the covariate balance, showing all variables with balance before and after
matching on the x and y axis respectively. Requires running computeCovariateBalance
first.
plotCovariateBalanceScatterPlot(
balance,
absolute = TRUE,
threshold = 0,
title = "Standardized difference of mean",
fileName = NULL,
beforeLabel = "Before matching",
afterLabel = "After matching",
showCovariateCountLabel = FALSE,
showMaxLabel = FALSE
)
balance |
A data frame created by the |
absolute |
Should the absolute value of the difference be used? |
threshold |
Show a threshold value for after matching standardized difference. |
title |
The main title for the plot. |
fileName |
Name of the file where the plot should be saved, for example 'plot.png'. See the
function |
beforeLabel |
Label for the x-axis. |
afterLabel |
Label for the y-axis. |
showCovariateCountLabel |
Show a label with the number of covariates included in the plot? |
showMaxLabel |
Show a label with the maximum absolute standardized difference after matching/stratification? |
A ggplot object. Use the ggplot2::ggsave function to save to file in a different format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.