Skip to contents

Draw a contour plot. x and y must each be numbers.

Usage

e_contour(
  e,
  serie,
  name = "contour",
  legend = TRUE,
  thresholds = 8,
  bandwidth = 20,
  lineStyle = list(opacity = 0.3, color = "black", width = 1),
  contourOpacity = 0.8,
  contourColors = list("#5470c6", "#91cc75", "#fac858", "#ee6666"),
  ...
)

Arguments

e

An echarts4r object as returned by e_charts or a proxy as returned by echarts4rProxy.

serie

Column name of serie to plot.

name

name of the serie.

legend

Whether to add serie to legend.

thresholds

contour density

bandwidth

the size of the contours

lineStyle

list of properties of the line

contourOpacity

opacity of the countours

contourColors

colors used for the contours

...

Any other option to pass, check See Also section.

Examples


mtcars |>
 e_charts(mpg) |>
 e_contour(serie = mpg)