create_plots: Creates and saves demographic profile plots

Description Usage Arguments

View source: R/demo_profiles_redshift.R

Description

Creates and saves demographic profile plots

Usage

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
)

Arguments

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


605data/DemoProfiles documentation built on June 12, 2020, 12:01 a.m.