Adds an already existing echart to your new matrix chart. Charts with timelines are not supported.
Usage
e_matrix_addChart(
e,
chart,
coord,
id = "chart1",
legend = TRUE,
legend_pos = "bottom",
legend_space = "0%",
margin_trbl = c(t = "5%", r = "5%", b = "15%", l = "5%")
)Arguments
- e
An
echarts4robject as returned bye_chartsor a proxy as returned byecharts4rProxy.- chart
An existing echart that you want to attach to your new matrix chart
- coord
X,Y Coordinate of matrix to place your new chart. Charts can cover multiple coordinates such as `list(c(0,1),0)`. See Matrix Coordinates for more information on matrix coordinates.
- id
Unique id value that will be added when chart is placed in the matrix. Defaults to `"chart1"`
- legend
Whether chart contains a legend. Defaults to
TRUE.- legend_pos
Position of the legend. One of "top", "right", "bottom", "left". Determines to which side the `legend_space` argument applies.
- legend_space
Space between legend and plot area. Supports integers(pixels) or strings(percent of parent cell).
- margin_trbl
Adjusts the size of the outside margin around the plotting area. Default is `c(t = "15 integers(pixels) or strings(percent of parent cell) To change only e.g. two sides `c("r" = 8, "l" = 8)` could be used, other sides will use defaults.
