plot_ecbar: Interactive Bar Plot

Description Usage Arguments Value Examples

View source: R/plot_ecbar.R

Description

Interactive Bar Plot

Usage

1

Arguments

dp

List of parameters

  • tab: table to be plotted, already aggregated

  • xval = 'x': column name with x-values

  • yval = 'y': column name with y-values

  • group = 'group': column name for grouping (not needed)

  • color = 'color': column name with color-values

  • label_position = 'right': position of text labels ('none', 'top', 'left', 'right', 'bottom', 'inside', 'insideLeft', 'insideRight', 'insideTop', 'insideBottom', 'insideTopLeft', 'insideBottomLeft', 'insideTopRight', 'insideBottomRight')

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

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

  • label_size = 10: size of text labels

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

  • margin_left = '10%': chart margin left

  • margin_right = '10%': chart margin right

  • margin_top = 60: chart margin top

  • margin_bottom = 60: chart margin bottom

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

  • chart_width = NULL: chart width (css units)

  • chart_height = NULL: chart height (css units)

  • legend = FALSE: show (TRUE/FALSE) the legend

  • legend_left = 'auto': legend position left

  • legend_right = 'auto': legend position right

  • legend_top = 'auto': legend position top

  • legend_bottom = 'auto': legend position bottom

  • legend_orient = 'horizontal': legend orientation (horizontal or vertical)

  • 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

  • y_min = NULL: min. value on y-axis

  • y_max = NULL: max. value on y-axis

  • show_yaxis = FALSE: show y-axis (TRUE/FALSE)

  • yaxis_title = yval: name of y-axis (title)

  • yaxis_title_size = 15: text size of y-axis title

  • yaxis_title_color = '#606060': text color of yaxis title

  • show_ygrid = FALSE: show y-grid

  • ygrid_color = fgrey: color of y-grid

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

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

Value

an echarts4r bar 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
## Not run: plot_ecbar(dp)
## Not run: 
dp = list(NULL)
dp$tab = tab
dp$xval = 'x'
dp$yval = 'y'
dp$group = 'group'
dp$color = 'color'
dp$text_format = ''
dp$label_color = '#A9A9A9'
dp$label_size = 10
dp$x_label_color = '#606060'
dp$x_label_size = 15
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
dp$legend = FALSE
dp$legend_left = 'auto'
dp$legend_right = 'auto'
dp$legend_top = 'auto'
dp$legend_bottom = 'auto'
dp$legend_orient = 'horizontal'
fplot = plot_ecbar(dp)
fplot

## End(Not run)

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