1

I have continuous data and would like to have a colorbar legend whose size gradually increases with legend labels. How can I do that ideally with ggplot2 or any other package? Like a triangular colorbar rather than a rectangular one.

ggplot(data, aes(x = x, y = y, color = length))+
theme_minimal()+
geom_point()+
[To DO ]

I googled the problem with no success!

MCH
  • 453
  • 5
  • 7
  • Do you want to see a colorbar with triangle ends? – manro Jun 12 '23 at 21:40
  • [Is this what you're trying to do?](https://stackoverflow.com/questions/68440366/how-can-i-add-triangles-to-a-ggplot2-colorbar-in-r-to-indicate-out-of-bound-valu) – Kat Jun 12 '23 at 23:35
  • @Kat no, I want a triangular colorbar – MCH Jun 13 '23 at 17:12
  • @manro no, the entire colorbar should be triangle – MCH Jun 13 '23 at 17:13
  • Can you add an image or what you're looking for? (It can be hand drawn...) I'm having trouble imagining how it would look, yet still be meaningful. – Kat Jun 14 '23 at 23:03

0 Answers0