Dynamically change the data and/or the colorRange.
Arguments
- map
a map widget object created from
leaflet()- data
the data object from which the argument values are derived; by default, it is the
dataobject provided toleaflet()initially, but can be overridden- lng
a numeric vector of longitudes, or a one-sided formula of the form
~xwherexis a variable indata; by default (if not explicitly provided), it will be automatically inferred fromdataby looking for a column namedlng,long, orlongitude(case-insensitively)- lat
a vector of latitudes or a formula (similar to the
lngargument; the nameslatandlatitudeare used when guessing the latitude column fromdata)- colorRange
The range of the color scale used to fill the hexbins
See also
Other Hexbin-D3 Functions:
addHexbin(),
clearHexbin(),
hexbinOptions(),
hideHexbin(),
showHexbin()