Skip to contents

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.

Usage

outcome_map(summary_type = NULL, file = NULL)

Arguments

summary_type

Character string, for time-varying data, indicating whether to display the highest ("max") or lowest ("min") temporal average. Leave as NULL 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.

Value

A highcharter map object showing average outcome measure by geography.