remapB: Create a Bmap object

Description Usage Arguments Value Author(s) Examples

View source: R/remapB.R

Description

remapB uses BaiduAPI instead of SVG object as the map object. You can mark line or point on the remapB.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
remapB(center = c(104.114129,37.550339),
       zoom = 5,
       color = "Bright",
       title = "",
       subtitle = "",
       markLineData = NA,
       markPointData = NA,
       markLineTheme = markLineControl(),
       markPointTheme = markPointControl(),
       geoData = NA)

Arguments

center

the center of the Bmap,a vector of (lon,lat), you can get from get_city_coord, e.g.get_city_coord("beijing")

zoom

the size of the Bmap, zoom:5 country data, zoom:15 city data

color

"Bright", "Blue", "light", "dark", "redalert", "googlelite", "grassgreen", "midnight", "pink", "darkgreen", "bluish", "grayscale", "hardedge"

title

a character string of the title

subtitle

a character string of the subtitle

markLineData

data for mark line

markPointData

data for mark point

markLineTheme

theme for mark line

geoData

geoData for markLine and markPoint format is similar as get_geo_position()

markLineTheme

theme for mark point

Value

An remap object

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
geoData  = get_geo_position(unique(demoC[demoC==demoC]))
# this may take some time,be patient~

remapB(markLineData = demoC,geoData = geoData)

# Different themes
remapB(markLineData = demoC,color = "Blue",geoData = geoData)
remapB(markLineData = demoC,color = "light",geoData = geoData)
remapB(markLineData = demoC,color = "dark",geoData = geoData)
remapB(markLineData = demoC,color = "redalert",geoData = geoData)
remapB(markLineData = demoC,color = "googlelite",geoData = geoData)
remapB(markLineData = demoC,color = "grassgreen",geoData = geoData)
remapB(markLineData = demoC,color = "midnight",geoData = geoData)
remapB(markLineData = demoC,color = "pink",geoData = geoData)
remapB(markLineData = demoC,color = "darkgreen",geoData = geoData)
remapB(markLineData = demoC,color = "bluish",geoData = geoData)
remapB(markLineData = demoC,color = "grayscale",geoData = geoData)
remapB(markLineData = demoC,color = "hardedge",geoData = geoData)

remapB(markLineData = demoC,markPointData = demoC[,2],
       color = "Blue",geoData = geoData)

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