View source: R/e_plot_table_prop.R
e_plot_table_prop | R Documentation |
Calculate proportions and plot factor variable by up to two other factor variables
e_plot_table_prop(dat_plot = NULL, var_names = NULL, sw_print = FALSE)
dat_plot |
data to plot |
var_names |
proportions are calculated for first variable, by up to two other variables (row facets, then column facets), |
sw_print |
T/F whether to print table and display plot |
a list including a table and ggplot object
e_plot_table_prop(
dat_plot = dat_mtcars_e
, var_names = c("vs")
)
e_plot_table_prop(
dat_plot = dat_mtcars_e
, var_names = c("vs", "am")
)
e_plot_table_prop(
dat_plot = dat_mtcars_e
, var_names = c("vs", "am", "gear")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.