powered by
Generates a base R histogram of weights. Default is to plot either unscaled or scaled weights and not both.
plot_weights_base( weighted_data, bin_col, vline_col, main_title, scaled_weights )
a plot of unscaled or scaled weights
object returned after calculating weights using estimate_weights
a string, color for the bins of histogram
a string, color for the vertical line in the histogram
title of the plot
an indicator for using scaled weights instead of regular weights
plot_weights_base(weighted_sat, bin_col = "#6ECEB2", vline_col = "#688CE8", main_title = c("Scaled Individual Weights", "Unscaled Individual Weights"), scaled_weights = TRUE )
Run the code above in your browser using DataLab