Add a surface plot.

e_surface(e, y, z, bind, name = NULL, rm_x = TRUE, rm_y = TRUE, ...)

e_surface_(e, y, z, bind = NULL, name = NULL, rm_x = TRUE,
  rm_y = TRUE, ...)

Arguments

e

An echarts4r object as returned by e_charts.

y, z

Coordinates.

bind

Binding.

name

name of the serie.

rm_x, rm_y

Whether to remove x and y axis, defaults to TRUE.

...

Any other option to pass, check See Also section.

Examples

data("volcano") surface <- as.data.frame(as.table(volcano)) surface$Var1 <- as.numeric(surface$Var1) surface$Var2 <- as.numeric(surface$Var2) surface %>% e_charts(Var1) %>% e_surface(Var2, Freq) %>% e_visual_map(Freq)