View source: R/palette_brooklyn99.R
brooklyn99_pal | R Documentation |
Brooklyn Nine Nine Color and Fill Scales
brooklyn99_pal( palette = "Regular", n = n, type = c("discrete", "continuous"), reverse = FALSE ) scale_color_brooklyn99( palette = "Regular", n = n, type = "discrete", reverse = FALSE, ... ) scale_colour_brooklyn99( palette = "Regular", n = n, type = "discrete", reverse = FALSE, ... ) scale_fill_brooklyn99( palette = "Regular", n = n, type = "discrete", reverse = FALSE, ... )
palette |
name of palette, Regular or Dark Default: "Regular" |
n |
number of colors |
type |
discrete or continuous |
reverse |
reverse order, Default: FALSE |
... |
Arguments passed on to
|
Colors that work well with the blue background!
library(scales) show_col(brooklyn99_pal()(5)) show_col(brooklyn99_pal(palette = "Dark")(5)) library(ggplot2) ggplot(airquality, aes(x = Day, y = Temp, group = as.factor(Month), color = as.factor(Month))) + geom_point(size = 2.5) + scale_color_brooklyn99() ggplot(airquality, aes(x = Day, y = Temp, group = as.factor(Month), color = as.factor(Month))) + geom_point(size = 2.5) + scale_color_brooklyn99(palette = "Dark") ggplot(airquality, aes(x = Day, y = Temp, group = as.factor(Month), color = as.factor(Month))) + geom_point(size = 2.5) + scale_colour_brooklyn99(palette = "Dark") ggplot(mpg, aes(displ)) + geom_histogram(aes(fill = class), col = "black", size = 0.1) + scale_fill_brooklyn99()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.