I'm diving into the world of highcharts and R highcharter for the first time. Currently, I have a dataframe structured like this:
tmp <- data.frame(x = 1:5, y = rnorm(5), color = c("green", "red", "green", "orange", "red"))
# x y color
# 1 0.4421 green
# 2 -0.8924 red
# 3 0.8264 green
# 4 0.6695 orange
# 5 -0.0966 red
I'm looking to visualize this data using highcharter. https://i.sstatic.net/BXQLu.png
Specifically, I want each point to be colored according to the color value in the dataframe.
What steps should I take? I'm open to solutions in JavaScript as well, as I can easily adapt them to R.