Barplot of ratios of residential population (or other) scores to averages - simpler syntax
Source:R/plot_barplot_ratios.R
ejam2barplot.Rd
Barplot of ratios of residential population (or other) scores to averages - simpler syntax
Usage
ejam2barplot(
ejamitout,
varnames = c(names_d_ratio_to_avg, names_d_subgroups_ratio_to_avg),
sitenumber = NULL,
main = "Residential Populations at the Analyzed Locations Compared to US Overall",
...
)
Arguments
- ejamitout
like from
ejamit()
- 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)
- sitenumber
default is all sites from ejamitout$results_overall, and if an integer, it is the site number to show from ejamitout$results_bysite
- main
title of plot - must change to note it vs. State if not comparing to US avg.
- ...
passed to
plot_barplot_ratios()
Examples
# Check a long list of indicators for any that are elevated
out <- testoutput_ejamit_100pts_1miles
ejam2barplot(out,
varnames = names_these_ratio_to_avg,
main = "Envt & Demog Indicators at Selected Sites Compared to State Averages")
ejam2barplot(out,
varnames = names_these_ratio_to_state_avg,
main = "Envt & Demog Indicators at Selected Sites Compared to State Averages")
# Residential population percentages only
# vs nationwide avg
ejam2barplot(out)
# vs statewide avg
ejam2barplot(out,
varnames = c(names_d_ratio_to_state_avg, names_d_subgroups_ratio_to_state_avg),
main = "Residential Populations at Selected Sites Compared to State Averages")
# Environmental only
ejam2barplot(out,
varnames = c(names_e_ratio_to_avg, names_e_ratio_to_state_avg),
main = "Environmental Indicators at Selected Sites Compared to Averages")