make_map: Create a map from geographically aggregated NHTS data

Description Usage Arguments Value

View source: R/make_map.R

Description

Create a map from geographically aggregated NHTS data

Usage

1
2
make_map(tbl, tbl2, state_style = "normal", geo_layer = NULL,
  confidence = 0.95, ggiraph_options = list(), ...)

Arguments

tbl

data.table returned from summarize_data, requires at least one group variable in tbl to be either HHSTATE or HH_CBSA (2009, 2017 only).

tbl2

optional second table returned from summarize_data, requires same geography group variable as tbl. tbl2 gets passed to make_chart and output as an interactive tooltip over the matching tbl geography.

state_style

either "normal" for typical state map boundaries or "tile" for tilemap style fixed-area boundaries.

geo_layer

Optional geography layer specification. only required for derived/custom geography variables.

confidence

Confidence level for margin of error calculation. Defaults to 0.95. Set to NULL for standard error.

ggiraph_options

Optional list of options to pass to ggiraph.

...

Optional formatting arguments. See format_values.

Value

ggiraph/htmlwidget class object


Westat-Transportation/summarizeNHTS documentation built on May 17, 2020, 8:57 p.m.