The $estimate_map()
method creates interactive choropleth maps that show MRP estimates by geographic region.
This method cannot be used if either the sample or the poststratification data contains no geographic information.
Check out the More examples of R6 classes
vignette for usage examples.
Arguments
- model
Fitted MRPModel object
- geo
Character string specifying the geographic level for mapping. Options include geography for data linking and those at larger scales. A "linking" geography is required to use this method. It is either specified as
geo
in the$link_acs()
method or the smallest common geographic scale between the sample data and the custom poststratification data input using$load_pstrat()
.- time_index
Integer specifying the time index for time-varying data.
- interval
Confidence interval (a numeric value between 0 and 1) or standard deviation (
"1sd"
or"2sd"
) for the estimates (default is 0.95).- 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.