The $outcome_map()
method creates maps showing the average outcome values
by geography for cross-sectional data, or the highest/lowest temporal average for time-varying data.
The sample and poststratification data must contain geographic information for this method to work.
Check out the More examples of R6 classes
vignette for usage examples.
Arguments
- summary_type
Character string, for time-varying data, indicating whether to display the highest (
"max"
) or lowest ("min"
) temporal average. Leave asNULL
for cross-sectional data.- file
Optional file path with .html extension to save the interactive map. Expand the hamburger menu in the top right corner of the map to access other export options.