Color Scales from Paul Tol's "Colour Schemes
See ptol_pal(). These palettes support up to 12 values.
scale_colour_ptol(...) scale_color_ptol(...) scale_fill_ptol(...)
... |
Arguments passed on to
|
Other colour ptol:
ptol_pal()
library("ggplot2")
p2 <- ggplot(mtcars, aes(x = wt, y = mpg, colour = factor(gear))) +
geom_point() +
geom_smooth(method = "lm", se = FALSE) +
scale_color_ptol("cyl") +
theme_minimal() +
ggtitle("Cars")
ggplot(diamonds, aes(x = clarity, fill = cut)) +
geom_bar() +
scale_fill_ptol() +
theme_minimal()Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.