Learn R Programming

googleway (version 2.0.0)

update_heatmap: update heatmap

Description

updates a heatmap layer

Usage

update_heatmap(map, data, lat = NULL, lon = NULL, weight = NULL,
  layer_id = NULL)

Arguments

map

a googleway map object created from google_map()

data

data frame containing at least two columns, one specifying the latitude coordinates, and the other specifying the longitude. If Null, the data passed into google_map() will be used.

lat

string specifying the column of data containing the 'latitude' coordinates. If left NULL, a best-guess will be made

lon

string specifying the column of data containing the 'longitude' coordinates. If left NULL, a best-guess will be made

weight

string specifying the column of data containing the 'weight' associated with each point. If NULL, each point will get a weight of 1.

layer_id

single value specifying an id for the layer.