teunbrand / ggnomics

A small project to add ggplot2 extensions
https://teunbrand.github.io/ggnomics/
Other
80 stars 4 forks source link

Helper function for centering scale around zero #13

Closed teunbrand closed 4 years ago

teunbrand commented 4 years ago

Basically this:

function(input){c(-1,1) * max(abs(input))

So that it can be used with scales:

scale_colour_continuous(limits = that_function)

Should be easy and convenient when scale indicates some kind of log fold change.

teunbrand commented 4 years ago

This exists now, should be here next update.