Gradient fill scale constructor for poisson colours
Arguments
- ...
Additional arguments passed to scale_color_gradientn()
- palette
Character name of palette in pois_palettes, or selection of colour names from pois_cols
- reverse
Boolean indicating whether the palette should be reversed
- n_steps
Number of steps in gradient
- n_col
Number of colours to subset from the palette (optional)
Examples
library(ggplot2)
ggplot(points, aes(X, Y, fill = RandomX)) +
geom_point(shape = 21) +
scale_fill_grad_poisson(palette = "cool")