inst/extdata/tasks_demo2/visualize_functions.R

plot_state_data <- function(figure_name, state_data, state) {
  png(figure_name)
  barplot(state_data, beside=T, names.arg = attr(state_data, 'dimnames')[[1]],
          ylab = 'Percent of population', main = state)
  dev.off()
}
    
USGS-R/scipiper documentation built on May 25, 2023, 8:47 a.m.