remapH: Create a heat map

Description Usage Arguments Details Value Author(s) Examples

View source: R/remapH.R

Description

remapH uses a data frame create a heat remap object which can be used by plot to see the map by browser

Usage

1
2
3
4
5
6
7
8
remapH(data,
      maptype = 'china',
      theme = get_theme("Dark"),
      blurSize = 30,
      color = c('blue', 'cyan', 'lime', 'yellow', 'red'),
      minAlpha = 0.05,
      opacity = 1,
      ...)

Arguments

data

a data frame including lontitude, latitude and density

maptype

the type of the map. For exameple,'china', 'world' or other names of province in China.

theme

a list object created by get_theme,control the color of the map.

blurSize

blur size of the data point, default is 30.

color

a vector of strings like ['blue', 'cyan', 'lime', 'yellow', 'red'], with which the color will transform evenly.

minAlpha

If the unified value is less than minAlpha, remapH will be set to minAlpha to ensure small data value can also be visible on the chart.

opacity

Opacity of the heatmap. Default is 1

...

other paramters like title, subtitle,data for mark line

Details

data should be a dataframe which including three columns, the first column is lontitude, second column is latitude, third column is the density.

Value

An remap object of heat map

Author(s)

Chiffon <http://lchiffon.github.io>

Examples

1
2
3
4
5
heatmap = sampleData()
## This is a function to create sample data as
## http://echarts.baidu.com/doc/example/heatmap_map.html

remapH(heatmap,minAlpha = 0.1,title = "Heat Map from REmap")

Lchiffon/REmap documentation built on Dec. 14, 2019, 11:43 p.m.