The map used is mxstate.map. See ?mxstate.map for for more information.
Arguments
- df
A data.frame with a column named "region" and a column named "value". Elements in the "region" column must match the state numeric codes in the "region" column of ?df_mxstate. either with a leading zero or without one (e.g. "01" or "1")
- title
An optional title for the map.
- legend
An optional name for the legend.
- num_colors
The number of colors to use on the map. A value of 1 will use a continuous scale, and a value in [2, 9] will use that many colors.
- zoom
An optional vector of countries to zoom in on. Elements of this vector must exactly match the names of countries as they appear in the "region" column of ?country.regions
