plot_echeatmap: Interactive Heatmap Plot

Description Usage Arguments Value Examples

View source: R/plot_heatmap.R

Description

Interactive Heatmap Plot

Usage

1

Arguments

dp

List of parameters

  • tab: table to be plotted, already aggregated

  • xval = 'x': column name with x-values, categorical or integer values

  • yval = 'y': column name with y-values, categorical or integer values

  • zval = 'z': column name with z-values, numerical values

  • color = 'c('#fef8cb', '#ba8d7e'): color vector defining color palette

  • title = NULL: chart title

  • title_left = margin_left: left position of title

  • title_top = 'auto': top position of title

  • title_size = 18: text size of title

  • title_color = x_label_color: text color of title

  • text_format = ”: text format is ” (standard), 'percent', or 'euro'

  • show_label = TRUE: show text labels (TRUE/FALSE)

  • label_color = '#606060': color of text labels

  • label_size = 10: size of text labels

  • x_label_color = '#606060': color of x-axis text labels

  • x_label_size = 15: size of x-axis text labels

  • y_label_color = '#606060': color of y-axis text labels

  • y_label_size = 15: size of y-axis text labels

  • xaxis_title = xval: name of x-axis title (string), set NA to remove it

  • yaxis_title = yval: name of y-axis title (string), set NA to remove it

  • axis_title_color = '#606060': color of axes titles

  • axis_title_size = 15: size of axes titles

  • show_xgrid = FALSE: show x-grid (TRUE/FALSE)

  • show_ygrid = FALSE: show y-grid (TRUE/FALSE)

  • margin_left = '10%': chart margin left

  • margin_right = '10%': chart margin right

  • margin_top = 60: chart margin top

  • margin_bottom = 60: chart margin bottom

  • chart_width = NULL: chart width (css units)

  • chart_height = NULL: chart height (css units)

Value

an echarts4r heatmap plot

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## Not run: plot_echeatmap(dp)
## Not run: 
dp = list(NULL)
dp$tab = tab
dp$xval = 'x'
dp$yval = 'y'
dp$zval = 'z'
dp$color = 'c('#fef8cb', '#ba8d7e')
dp$text_format = ''
dp$show_label = TRUE
dp$label_color = '#606060'
dp$label_size = 10
dp$x_label_color = '#606060'
dp$x_label_size = 15
dp$y_label_color = '#606060'
dp$y_label_size = 15
dp$xaxis_title = xval
dp$yaxis_title = yval
dp$axis_title_color = '#606060'
dp$axis_title_size = 15
dp$show_xgrid = FALSE
dp$show_ygrid = FALSE
dp$margin_left = '10%'
dp$margin_right = '10%'
dp$margin_top = 60
dp$margin_bottom = 60
dp$title = 'Chart'
dp$chart_width = NULL
dp$chart_height = NULL
fplot = plot_echeatmap(dp)
fplot

## End(Not run)

mz74/mzfun documentation built on April 14, 2021, 4:17 a.m.