stacked_bar_ses: Produce panel of stacked bar charts of SES by a 'periods'...

Description Usage Arguments Value

View source: R/stacked_bar_ses.R

Description

This function takes in data and produces a panel of stacked bar charts, based on different groupings. Intended to be used with oakViz::aggregate_categories()

Usage

1
2
3
4
5
6
7
8
9
stacked_bar_ses(
  dat,
  var,
  y_title = NULL,
  save = F,
  savename = "plot.png",
  title = NULL,
  caption = "test"
)

Arguments

dat

Data with a column containing variables of interest and grouping variables.

var

Name of column containing variable to plot

y_title

Title to display along y-axis.

save

T if user would like to return plot object and save file, F (default) to just return object.

savename

File name of map for saving.

caption

Caption for figure

Value

Panel of stacked bar charts of different groupings


Changing-Cities-Research-Lab/seattleViz documentation built on April 14, 2021, 3:47 p.m.