plot_ecscatter: Interactive Line and Scatter Plot

Description Usage Arguments Value Examples

View source: R/plot_ecscatter.R

Description

Interactive Line and Scatter 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 = NULL: color vector

  • pointsize = 8: symbol size

  • linesize = 2: line width of line plot

  • 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 = axis_title_color: text color of title

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

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

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

  • label_size = 10: size of text labels

  • ax_label_color = '#606060': color of axes text labels

  • ax_label_size = 10: size of axes 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

  • 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)

  • chart_width = NULL: chart width (css units)

  • chart_height = NULL: chart height (css units)

  • x_min = 'dataMin': min. value on x-axis

  • x_max = NULL: max. value on x-axis

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

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

Value

an echarts4r line and scatter 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
34
35
36
37
38
39
## Not run: plot_ecbar(dp)
## Not run: 
dp = list(NULL)
dp$tab = tab
dp$xval = 'x'
dp$yval = 'y'
dp$group = 'group'
dp$color = c('#b4943e', '#777acd', '#60a862', '#c45ca2', '#cb5a4c')
dp$pointsize = 8
dp$linesize = 2
dp$title = NULL
dp$text_format = ''
dp$show_label = FALSE
dp$label_color = '#A9A9A9'
dp$label_size = 10
dp$ax_label_color = '#606060'
dp$ax_label_size = 10
dp$xaxis_title = NULL
dp$yaxis_title = NULL
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$legend = FALSE
dp$legend_left = 'auto'
dp$legend_right = 'auto'
dp$legend_top = 'auto'
dp$legend_bottom = 'auto'
dp$legend_orient = 'horizontal'
dp$chart_width = NULL
dp$chart_height = NULL
fplot = plot_ecscatter(dp)
fplot

## End(Not run)

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