Description Usage Arguments Value
Plot bar and line chart using e_bar
and
e_line
. Regardless of whether there is a timeline axis,
this function can plot charts correctly.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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. |
bar_var |
character vector. The variable that will be used to draw bar chart. |
line_var |
character vector. The variable that will be used to draw line chart. |
main_axis_name |
character. The name of main Y axis. If missing, the function will use
information in |
sec_axis_name |
character. The name of secondary Y axis. If missing, the function will use
information in |
x_axis_name |
character. The name of X axis. If missing, the function will use
information in |
axis_fontsize |
numeric, default 12. The font size of axis name. |
x_name_gap |
numeric, default 25. The distance between x axis and label of x axis. |
long_x_label |
logical, default FALSE. Whether to use style that solving the problem than the label text of x axis is too long. |
x_label_width |
numeric, default 30. The label text width of x axis. |
use_y_upper_bound |
logical, default FALSE. Whether to use upper bound of Y axis. |
show_label |
logical, default TRUE. Whether to show data labels. |
toolbox_features |
character vectors, default |
an object of class echarts4r
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.