Description Usage Arguments Value
Scatter Chart with Timeline
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | scatter_timeline_echart(
data,
timeline_var,
x_var,
y_var,
size_var,
x_axis_name,
y_axis_name,
size_axis_name,
y_lower_bound,
y_upper_bound,
x_label_width = 50,
symbol_size = c(1, 25),
timeline_top = 5,
interval = 0,
timeline_label_width = 50,
toolbox_features = c("saveAsImage", "restore")
)
|
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. |
size_var |
character. The variable that will be the label of point in the chart. |
x_axis_name |
character. The name of X axis. If missing, the function will use
information in |
y_axis_name |
character. The name of Y axis. If missing, the function will use
information in |
size_axis_name |
character. The name of size axis. If missing, the function will use
information in |
y_lower_bound |
numeric. The lower bound of Y axis. |
y_upper_bound |
numeric. The upper bound of Y axis. |
x_label_width |
numeric, default 50. The width of label text of x axis. |
symbol_size |
numeric vector, default |
timeline_top |
numeric, default 5. The distance between timeline widget and top of chart. |
interval |
numeric, default 0. The interval of label of timeline points. |
timeline_label_width |
numeric, default 50. The label text width of timeline points. |
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.