scatter_echart: Scatter Chart

Description Usage Arguments Value

Description

Scatter Chart

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
scatter_echart(
  data,
  x_var,
  y_var,
  label_var,
  x_axis_name,
  y_axis_name,
  x_lower_bound,
  x_upper_bound,
  y_lower_bound,
  y_upper_bound,
  increment = 1000,
  symbol_size = 20,
  shrink_width = NULL,
  toolbox_features = c("saveAsImage", "restore")
)

Arguments

data

a data frame

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.

label_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.

x_lower_bound

numeric. The lower bound of x axis.

x_upper_bound

numeric. The upper bound of x axis.

y_lower_bound

numeric. The lower bound of Y axis.

y_upper_bound

numeric. The upper bound of x axis.

increment

numeric, default 1000. The increment of secondary Y axis ticks.

symbol_size

numeric, default 20. The size of point in chart.

shrink_width

character, default NULL. It uses e_grid to control the width of figure grid so the long name of X axis can be seen fully.

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.