Skip to contents

Same as ejam2barplot() but ejam2barplot() handles a sitenumber parameter

Usage

plot_barplot_ratios_ez(
  out,
  varnames = c(names_d_ratio_to_avg, names_d_subgroups_ratio_to_avg),
  main = "Residential Populations at the Analyzed Locations Compared to US Overall",
  single_location = FALSE,
  row_index = NULL,
  ...
)

Arguments

out

the list of tables that is the output of ejamit() or a related function

varnames

vector of indicator names that are ratios to avg, like c(names_d_ratio_to_avg , names_d_subgroups_ratio_to_avg) but could be c(names_d_ratio_to_state_avg , names_d_subgroups_ratio_to_state_avg)

main

title of plot - must change to note it vs. State if not comparing to US avg.

single_location

set to TRUE if using row_index to view one site, set to FALSE to view overall results from out$results_overall

row_index

the number of the row to use from out$results_bysite

...

Arguments passed on to ejam2barplot

ejamitout

like from ejamit()

sitenumber

default is all sites from ejamitout$results_overall, and if an integer, it is the site number to show from ejamitout$results_bysite