markLineControl: Control the theme of mark line

Description Usage Arguments Value Examples

View source: R/markLineControl.R

Description

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

Usage

1
2
3
4
5
6
7
8
markLineControl(symbol = c('none', 'arrow'),
      symbolSize = c(2,4),
      smooth = T,
      smoothness = 0.2,
      effect = T,
      lineWidth = 1,
      lineType = 'solid',
      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

smooth

smoothed line, logical object, default is T, while smooth is true, lineType can not be dashed.

smoothness

Line smoothness. Only available when smooth is true

effect

whether to show glow effect for markLine symbol

lineWidth

width of the line

lineType

type of the line can be 'solid', 'dotted' or 'dashed'.

color

Color of the line

Value

A list of line control object, which can be used for

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
mapdata = read.csv("demo/chinaIphone.csv")
out = remapC(data = mapdata,
             color = c("white","white"),
             theme=get_theme("none","white","white","white",'white'),
             markPointData = demoC[,2],
             markPointTheme = markPointControl(
               symbol = "image://demo/1.png",
               symbolSize = 50,
               effectType = 'bounce' ),
             geoData = geoData)

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