I have codes and plot below
tmp <- data.frame(x = 1:5, y = rnorm(5),
color = c("#00FF00", "#FF0000", "#00FF00", "#ffa500", "#FF0000"))
highchart() %>%
hc_add_series(data= tmp, hcaes(x = x, y = y, color = color), type = "line")
For the legend, currently it is "Series 1", I want to make it point legend for each point color, which is Green, Orange, and Red. And also customize the legend text.
Legend should look Like:
(red point) 20% quantile (green point) 40% quantile (orange point) 80% quantile