plot_dist: Plot distribution for selected variable-year

Description Usage Arguments See Also Examples

View source: R/data-dive.R

Description

To be run from run_visual_dive to show a bar plot distribution.

Usage

1
plot_dist(priv, var = "sex")

Arguments

priv

data for one permission

var

name of variable to be plotted

See Also

Other data dive functions: drop_state_code(), filter_demo(), get_county_map_dive(), load_cust_samp(), plot_county_dive(), plot_trend(), run_visual_dive(), set_nonres_county_na(), set_other_county_na(), summarize_trend()

Examples

1
2
3
4
library(dplyr)
data(hist_samp)
priv <- filter(hist_samp, priv == "all_sports", year == 2015)
plot_dist(priv, "age")

southwick-associates/sadash documentation built on Jan. 6, 2022, 5:17 p.m.