Skip to contents

Histogram of single indicator from EJAM output

Usage

ejam2histogram(
  ejamitout,
  varname,
  distn_type = "Sites",
  data_type = "raw",
  n_bins = 30,
  sitetype = ejamitout$sitetype
)

Arguments

ejamitout

output of an EJAM analysis, like from ejamit()

varname

indicator name, such as 'Demog.Ind' or 'pctlowinc'

distn_type

group to show distribution across, either 'Sites' or 'People'

data_type

type of values to show for the indicator, either 'raw' or 'pctile'

n_bins

number of bins

sitetype

what type of sites were analyzed, like ejamit() 'sitetype'. Examples are 'latlon', 'FIPS', 'SHP'

...

passed to plot_barplot_ratios()

Examples

ejam2histogram(testoutput_ejamit_1000pts_1miles, 'Demog.Index', distn_type='Sites', data_type='raw')