Created
September 11, 2019 14:07
-
-
Save diazdc/200872ea0edd98be46c2bbcba588c19f to your computer and use it in GitHub Desktop.
ggplot color generator
This file contains hidden or 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
gg_color_hue <- function(n) { | |
hues = seq(15, 375, length = n + 1) | |
hcl(h = hues, l = 65, c = 100)[1:n] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment