Description Usage Arguments Examples
boo palette
1 2 3 4 5 6 7 |
n |
number of colors |
type |
discrete or continuous |
reverse |
reverse order, Default: FALSE |
... |
Arguments passed on to
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(scales)
show_col(boo_pal()(9))
library(ggplot2)
ggplot(airquality, aes(x = Day, y = Temp,
group = as.factor(Month), color = as.factor(Month))) +
geom_point(size = 2.5) +
scale_color_boo()
ggplot(airquality, aes(x = Day, y = Temp,
group = as.factor(Month), color = as.factor(Month))) +
geom_point(size = 2.5) +
scale_colour_boo()
ggplot(mpg, aes(displ)) +
geom_histogram(aes(fill = class),
col = "black", size = 0.1) +
scale_fill_boo()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.