#add a grafify fill scheme to ggplot
ggplot(emmeans::neuralgia, aes(x = Treatment,
y = Duration))+
geom_boxplot(aes(fill = Treatment),
alpha = .6)+
geom_point(aes(colour = Treatment,
shape = Treatment),
size = 3)+
scale_fill_grafify(palette = "bright")+
scale_colour_grafify(palette = "bright")+
facet_wrap("Sex")+
theme_classic()
#distant colours `ColSeq = FALSE`
ggplot(emmeans::neuralgia, aes(x = Treatment,
y = Duration))+
geom_boxplot(aes(fill = Treatment),
alpha = .6)+
geom_point(aes(colour = Treatment,
shape = Treatment),
size = 3)+
scale_fill_grafify(palette = "bright",
ColSeq = FALSE)+
scale_colour_grafify(palette = "bright",
ColSeq = FALSE)+
facet_wrap("Sex")+
theme_classic()
#quantitative colour scheme
ggplot(mtcars, aes(x = disp,
y = mpg))+
geom_point(aes(colour = cyl),
size = 3)+
scale_colour_grafify(palette = "blue_conti")
Run the code above in your browser using DataLab