This document details more advanced usage of the
Chart types are not only applicable to the standard 2D cartesian coordinate system, though most charts will default to the
cartesian2d coordinate system they may be applied to others.
Let’s look at the heatmap. First a regular heatmap.
v <- LETTERS[1:10] matrix <- data.frame( x = sample(v, 300, replace = TRUE), y = sample(v, 300, replace = TRUE), z = rnorm(300, 10, 1), stringsAsFactors = FALSE ) %>% dplyr::group_by(x, y) %>% dplyr::summarise(z = sum(z)) %>% dplyr::ungroup() matrix %>% e_charts(x) %>% e_heatmap(y, z) %>% e_visual_map(z)
One could also plot the heatmap on different coordinates, such as a calendar by first adding a calendar with
e_calendar then specifying
coord.system = "calendar".
Another example, using polar coordinates, plot a line on 2D cartesian coordinates, then change to polar.
There are numerous coordinate system available in
polar to name a few.
Use multiple axis.
Highlight points and lines on your plot.
Look for more arguments, with
echarts4r are often only one argument away from from what you want.