Create facetted barplots of groups of indicators
Source:R/ejam2barplot_indicators.R
ejam2barplot_indicators.Rd
Create facetted barplots of groups of indicators
Usage
ejam2barplot_indicators(
ejamitout,
indicator_type = "Demographic",
data_type = "raw",
mybarvars.stat = "avg",
mybarvars.sumstat = c("Average site", "Average person at these sites")
)
Arguments
- ejamitout
output from running an EJAM analysis, with ejamit or the EJAM shiny app
- indicator_type
group of indicators to display, such as 'Environmental', etc.
- data_type
form to display data in: 'raw' or 'ratio'
- mybarvars.stat
"avg" is tested and works (or possibly could be "med" for median), can be defined by the value of shiny input$summ_bar_stat selection
- mybarvars.sumstat
description of summary stat type - by default depends on mybarvars.stat being "avg" or "med" which should correspond to also specifying values of mybarvars.sumstat equal to c('Average site', 'Average person at these sites') or c('Median site', 'Median person') respectively. If mybarvars.stat is specified then mybarvars.sumstat should be also to ensure they correspond! Done in shiny, not checked here.