eHLine: Create an HTML bar charts widget using the...

Description Usage Arguments Examples

View source: R/eMarkLine.R

Description

This function creates an HTML widget to display matrix, data.frame and factor array, using the JavaScript library ECharts3.

Usage

1
2
3
eHLine(chart, yvalue, lineType = "solid", symbol = "none",
  lineWidth = 1, lineColor = "red", name = "", precision = NULL,
  seriesIndex = NULL)

Arguments

chart

a recharts object

yvalue, xvalue

x,y value for horizontal or vertical line,can be one of ('min','max','average')

lineType

default is solid, can be of ('solid','dashed','dotted')

symbol

symbol type at the two ends of the mark line, none includes 'circle', 'rect', 'roundRect', 'triangle', 'diamond', 'pin', 'arrow'

lineWidth

line width, default is 1

lineColor

default is NULL,

name

default is NULL,

precision

default is 2,

seriesIndex

default is NULL,

startPoint, endPoint

start and end point for XYline

series

an "formula" object: Associates the levels of variable with symbol color, e.g. series = ~groupName

Examples

1
2
3
4
5
6
chart = ePoints(iris[, 3:5], theme = 2)
eHLine(chart,1,lineColor = 'blue')
eHLine(chart,'min',lineWidth = 5)
eVLine(chart,1,lineColor = 'blue')
eVLine(chart,'min',lineWidth = 5)
eMarkLine(chart, c(1,0), c(7,2.5))

taiyun/recharts documentation built on Aug. 29, 2020, 3:17 a.m.