Learn R Programming

remap (version 0.3.2)

markPointControl: Control the theme of mark Point

Description

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

Usage

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

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab