helper function for formatting the x and y axes for a matrix grid.
Usage
e_format_matrix_axis(e, axis = "x", ...)
Arguments
- e
An echarts4r object as returned by e_charts or
a proxy as returned by echarts4rProxy.
- axis
indicate which axis shoud be adjusted
- ...
Any other option to pass, check See Also section.
Examples
df <- data.frame("Class" = rep(c("Class1", "Class2", "Class3"),each = 3),
"Grade" = c("Grade1","Grade2", "Grade3"),
"A" = sample(1:10, 9),
"B" = sample(1:10,9))
df |> e_charts() |> e_matrix(xAxis = "Class", yAxis = "Grade") |>
e_format_matrix_axis(axis = "x", label = list(color = "red"))