scatter_timeline_echart: Scatter Chart with Timeline

Description Usage Arguments Value

Description

Scatter Chart with Timeline

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
scatter_timeline_echart(
  data,
  timeline_var,
  x_var,
  y_var,
  size_var,
  x_axis_name,
  y_axis_name,
  size_axis_name,
  y_lower_bound,
  y_upper_bound,
  x_label_width = 50,
  symbol_size = c(1, 25),
  timeline_top = 5,
  interval = 0,
  timeline_label_width = 50,
  toolbox_features = c("saveAsImage", "restore")
)

Arguments

data

a data frame

timeline_var

character. The variable indicating timeline.

x_var

character. The variable that will be the X axis in the chart.

y_var

character. The variable that will be the Y axis in the chart.

size_var

character. The variable that will be the label of point in the chart.

x_axis_name

character. The name of X axis. If missing, the function will use information in option to auto-detect the name according to x_var.

y_axis_name

character. The name of Y axis. If missing, the function will use information in option to auto-detect the name according to y_var.

size_axis_name

character. The name of size axis. If missing, the function will use information in option to auto-detect the name according to size_var.

y_lower_bound

numeric. The lower bound of Y axis.

y_upper_bound

numeric. The upper bound of Y axis.

x_label_width

numeric, default 50. The width of label text of x axis.

symbol_size

numeric vector, default c(1,25). The range of size of point in chart.

timeline_top

numeric, default 5. The distance between timeline widget and top of chart.

interval

numeric, default 0. The interval of label of timeline points.

timeline_label_width

numeric, default 50. The label text width of timeline points.

toolbox_features

character vectors, default c("saveAsImage", "restore"). It controls the toolbox functions in echarts.

Value

an object of class echarts4r.


YuanchenZhu2020/antgreens documentation built on Dec. 18, 2021, 8:20 p.m.