markPointControl: Control the theme of mark Point

Description Usage Arguments Examples

View source: R/markPointControl.R

Description

markPointControl is a function for the themes of mark Point, which can be set as a element in remapC and remapB

Usage

1
2
3
4
5
markPointControl(symbol = 'emptyCircle',
                  symbolSize = "Random",
                  effect = T,
                  effectType = 'scale',
                  color = "Random")

Arguments

symbol

the symbol of the point default:'pin', can be one of the 'circle','rectangle', 'triangle','diamond','emptyCircle','emptyRectangle', 'emptyTriangle','emptyDiamond','heart','droplet','pin','arrow' 'tar' or the filepath to a fingure file(e.g. "'image://http://echarts.baidu.com/doc//asset/ico/favicon.png'")

symbolSize

the size of the symbol, default is 10

effect

whether to show glow effect for markPoint symbol

effectType

'scale' or 'bounce'

color

control the color of the markPoint

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
mapdata = chinaIphone
geoData  = get_geo_position(unique(demoC[demoC==demoC]))
out = remapC(data = mapdata,
             color = c("white","white"),
             theme=get_theme("none","white","white","white",'white'),
              markPointData = demoC[,2],
             markPointTheme = markPointControl(
               symbol = "image://http://lchiffon.github.io/reveal_slidify/pic/ghost.png",
               symbolSize = 50,
               effectType = 'bounce' ),
             geoData = geoData)
 out

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