examples/gg_color_hue_example.R

library(ggplot2)
N <- nlevels(factor(mtcars$carb))
ggplot(mtcars, aes(wt, disp, col=factor(carb))) +
  geom_point() +
  scale_color_manual(values = gg_color_hue(N))
ajabadi/Altools documentation built on Jan. 18, 2022, 7:43 a.m.