grafify
internally includes colour-blind compatible schemes for fill and colour/color aesthetics.
Note that this scheme is only for continuous variables and take four options, which include (yellow_conti
) modified from the YlOrBr scheme from RColorBrewer, blue_conti
, PrGn_div
and OrBl_div
.
Colours available can be seen quickly with plot_grafify_palette
.
scale_colour_grafify_c(
palette = c("blue_conti", "yellow_conti", "grey_conti", "PrGn_div", "OrBl_div"),
reverse = FALSE,
...
)
One of five grafify
palettes for quantiative data blue_conti
, yellow_conti
, grey_conti
, PrGn_div
, OrBl_div
Whether the colour order should be reversed.
Additional parameters for scale_fill
or scale_colour
.
ggplot scale_fill function for discrete colours.
#basic usage on mtcars data with x and y quantitative axes
ggplot(mtcars, aes(x = mpg, y = disp))+
geom_point(aes(colour = disp), size = 3)+
scale_colour_grafify_c()