0

I want to add some explanatory text on top (and bottom) of the legend like the following image. Text a and b can depend on the max and min values of the entry and text c on a specific value. Also the colour of the text to reflect the colour of the max or min value, too.

enter image description here

Can this also work if I use ggplotly?

ggplot(faithfuld, aes(waiting, eruptions)) +
geom_raster(aes(fill = density)) +
theme(legend.position = "bottom")
Y_gr
  • 111
  • 5
  • You might have to do something [like this](https://stackoverflow.com/questions/12409960/ggplot2-annotate-outside-of-plot) and/or [this](https://stackoverflow.com/questions/65744248/how-to-add-a-free-text-entry-as-a-legend-to-ggplot) – Bushidov Sep 15 '22 at 07:13

0 Answers0