View source: R/demo_profiles_redshift.R
Creates and saves demographic profile plots
1 2 3 4 5 6 7 8 9 | create_plots(
proportion_tbl,
demographic_list,
plot_save_location,
additional_demographics_levels_and_x_axis_title = NA,
base_universe_name,
user_universe_names,
custom_palette = NA
)
|
proportion_tbl |
(local table) proportion table created by create_proportion_tbl() |
demographic_list |
(list of strings with names) list of demographics to plot with names |
plot_save_location |
(string) directory path to the location the tables should be saved in |
additional_demographics_levels_and_x_axis_title |
(nested list) levels and x axist titles of additional demographics |
base_universe_name |
(string) Label name for the base universe in the plots |
user_universe_names |
(list of strings) names of the universes from user_universe_list - must be in the same order |
custom_palette |
(list of strings) color codes for custom color palette - MUST BE LENGTH 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.