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!