heatmap_echart: Heatmap Chart (with Timeline)

Description Usage Arguments Value

Description

Plot heat map using e_heatmap. This function uses datazoom toolbox with type "inside" and "continuous" visual map. For Y axis labels, the width of label text is set to 60 and when it will use break to wrap when the actual width is overflow. For timeline options, the timeline widget is on the top and 5 units from top. The time point widgets padding is set to 0 and the play intercal is 1500 ms.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
heatmap_echart(
  data,
  timeline_var = NULL,
  x_var,
  y_var,
  value_var,
  x_axis_name,
  y_axis_name,
  value_axis_name,
  width = "100%",
  height = "700%",
  shrink_height = NULL,
  x_label_width = 1,
  x_label_fontsize = 12,
  toolbox_freatures = 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.

value_var

character. The variable that will be displayed in cells 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.

value_axis_name

character. The name of value variable. If missing, the function will use information in option to auto-detect the name according to value_var.

width, height

character, width default is "100 "700 or a number, which will be coerced to a string and have 'px' appended.

shrink_height

character, default NULL. It is the same as width and height but to used in e_grid to control the height of figure grid so the long label in X axis can be seen fully.

x_label_width

numeric, default 1. The width of text of x label. If the text width overflow, then will use break to wrap.

x_label_fontsize

numeric, default 12. The font size of text of x label.

toolbox_freatures

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.