plot_lollipop: Produce lollipop plot by King County HRA.

Description Usage Arguments Value

View source: R/plot_lollipop.R

Description

This function takes in data and produces a horizontal lollipop plot by King County HRA The order of these categories can be adjusted by changing the factor levels of the facet variable. Input data needs columns for variable of interest (titled "var") and HRA.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot_lollipop(
  data,
  var,
  limits,
  title = NULL,
  x_title = NULL,
  scale_type = "numeric",
  save = F,
  savename = "plot.png",
  caption = paste0(frb_acs_caption_splitline, ses_caption)
)

Arguments

data

Data with column for variable of interest with "facet" and "facet_col"

var

Column name of variable of interest.

limits

Y-axis limits.

title

Plot title

x_title

Title to display along x-axis

scale_type

Y-axis scale type: "numeric" or "percent"

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

Figure caption

Value

Lollipop plot of variable by HRA and SES.


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