Search code examples
rggplot2r-highcharter

is there an equivalent to geom_ribbon in highcharter?


Using highcharter, is there a way to replicate geom_ribbon form ggplot2?


Solution

  • Yes, it is called arearange. You can check the 3rd example in https://cran.r-project.org/web/packages/highcharter/vignettes/charting-data-frames.html.

    highchart() %>%
      hc_add_series(data, "arearange", hcaes(x, low = lowvalue, high = highvalue))
    

    enter image description here