I'm making a line that spans from 0-1, and plotting a single dot on top of it.
How can I manually make the line a gradient from red(0) to green(1.00) ?
Is there also any way for me to break it up like 0.00-0.19 is red, etc etc?
split your x-axis onto the smaller pieces (use by = argument in the seq()). The smaller pieces - the smoother gradient. If you set it to 0.2 you will get 5 steps from green to red.
Use aes(color = values) to scale the color
Use scale_color_gradient(low = "green", high = "red") to define how colors should change
I have no experience with ggplotly, so can't help. I suggest initiating a new topic with the question about your new problem, otherwise, folks can miss it