Created
June 19, 2016 12:46
-
-
Save wulingyun/785bb3e96bd817fbafe053c577b16573 to your computer and use it in GitHub Desktop.
Color function for green-red heatmap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
updown_colors <- function(n = 50, down.col = 1/3, up.col=1, saturation = 1) | |
{ | |
c(hsv(down.col, saturation, seq(1,0,length=n)), hsv(up.col, saturation, seq(0,1,length=n))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment