| addHeatmap {leaflet.extras} | R Documentation |
Add a heatmap
Adds a heatmap with data from a GeoJSON/TopoJSON file/url
Adds a heatmap with data from a KML file/url
Adds a heatmap with data from a CSV file/url
Adds a heatmap with data from a GPX file/url
removes the heatmap
clears the heatmap
addHeatmap(map, lng = NULL, lat = NULL, intensity = NULL, layerId = NULL, group = NULL, minOpacity = 0.05, max = 1, radius = 25, blur = 15, gradient = NULL, cellSize = NULL, data = leaflet::getMapData(map)) addGeoJSONHeatmap(map, geojson, layerId = NULL, group = NULL, intensityProperty = NULL, minOpacity = 0.05, max = 1, radius = 25, blur = 15, gradient = NULL, cellSize = NULL) addKMLHeatmap(map, kml, layerId = NULL, group = NULL, intensityProperty = NULL, minOpacity = 0.05, max = 1, radius = 25, blur = 15, gradient = NULL, cellSize = NULL) addCSVHeatmap(map, csv, csvParserOptions, layerId = NULL, group = NULL, intensityProperty = NULL, minOpacity = 0.05, max = 1, radius = 25, blur = 15, gradient = NULL, cellSize = NULL) addGPXHeatmap(map, gpx, layerId = NULL, group = NULL, intensityProperty = NULL, minOpacity = 0.05, max = 1, radius = 25, blur = 15, gradient = NULL, cellSize = NULL) removeHeatmap(map, layerId) clearHeatmap(map)
map |
the map widget. |
lng |
a numeric vector of longitudes, or a one-sided formula of the form
|
lat |
a vector of latitudes or a formula (similar to the |
intensity |
intensity of the heat. A vector of numeric values or a formula. |
layerId |
the layer id |
group |
the name of the group the newly created layers should belong to
(for |
minOpacity |
minimum opacity at which the heat will start |
max |
maximum point intensity. The default is |
radius |
radius of each "point" of the heatmap. The default is
|
blur |
amount of blur to apply. The default is |
gradient |
palette name from |
cellSize |
the cell size in the grid. Points which are closer than this may be merged. Defaults to 'radius / 2'.s Set to '1' to do almost no merging. |
data |
the data object from which the argument values are derived; by
default, it is the |
geojson |
The geojson or topojson url or contents as string. |
intensityProperty |
The property to use for determining the intensity at a point. Can be a 'string' or a JS function, or NULL. |
kml |
The KML url or contents as string. |
csv |
The CSV url or contents as string. |
csvParserOptions |
options for parsing the CSV.
Use |
gpx |
The GPX url or contents as string. |