plot_county_dive: Chloropleth county plot for data dive

Description Usage Arguments See Also Examples

View source: R/data-dive.R

Description

Chloropleth county plot for data dive

Usage

1
plot_county_dive(priv, county_map, metric = "participants", pct = 10)

Arguments

priv

data for one permission

county_map

spatial table produced by get_county_map_dive

metric

name of metric to summarize, either "participants" or "churn"

pct

sample size (in whole percentage points) for hist_samp

See Also

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(dplyr)
data(hist_samp)
priv <- filter(hist_samp, priv == "all_sports", year == 2014)
county_map <- get_county_map_dive("WI")
plot_county_dive(priv, county_map, pct = 1)
plot_county_dive(priv, county_map, "churn")

## End(Not run)

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