wilkelab / ggridges

Ridgeline plots in ggplot2
https://wilkelab.org/ggridges
GNU General Public License v2.0
411 stars 31 forks source link

y-scale transforms for individual plots #43

Closed mattmoo closed 5 years ago

mattmoo commented 5 years ago

I might be being dense, but how do I apply an e.g. square root transform to the individual ridges? If I try scale_y_continuous it tries to apply the transform to the factor separating the ridges.

clauswilke commented 5 years ago

Not possible. You'll have to calculate the ridgelines manually and then plot with geom_ridgeline().