Description Usage Arguments Value
Create a map from geographically aggregated NHTS data
| 1 2 | 
| 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. | 
ggiraph/htmlwidget class object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.