emap_heat: Add heat on map

Description Usage Arguments Examples

View source: R/add.R

Description

Add heat on map

Usage

1
2
3
4
5
emap_heat(p, lon, lat, z, blurSize = 30, minAlpha = 0.05, valueScale = 1,
  opacity = 1, gradientColors = NULL, ...)

emap_heat_(p, lon, lat, z, blurSize = 30, minAlpha = 0.05, valueScale = 1,
  opacity = 1, gradientColors = NULL, ...)

Arguments

p

an echart object.

lon, lat

coordinates.

z

values, heat.

blurSize

blur of points.

minAlpha

minimum transparency.

valueScale

z multiplier.

opacity

opacity of heatmap.

gradientColors

colors.

...

any other parameter to pass to heatmap.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data <- data.frame(lon = runif(300, 90, 120),
  lat = runif(300, 30, 39),
  z = runif(300, 75, 100))

data %>%
  echart() %>%
  emap(mapType = "china") %>%
  emap_heat(lon, lat, z)

data %>%
  echart() %>%
  emap(mapType = "china") %>%
  emap_heat(lon, lat, z, blurSize = 50, minAlpha = 0.3, opacity = 0.8)

JohnCoene/echarts documentation built on May 22, 2021, 6:18 p.m.