# NOT RUN {
library(ggplot2)
# ggplot2 examples, but with more seltzer
p <- ggplot(mtcars, aes(wt, mpg))
p + geom_point(size=4, aes(color = factor(cyl))) +
scale_color_lacroix("PassionFruit", discrete = TRUE) +
theme_bw()
p + geom_point(size=4, aes(color = hp)) +
scale_color_lacroix("PassionFruit", discrete = FALSE) +
theme_bw()
# }
Run the code above in your browser using DataLab