gradient colour scale constructor for poisson colours
Source:R/scales.R
scale_colour_grad_poisson.Rdgradient colour 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, colour = RandomX)) +
geom_point() +
scale_colour_grad_poisson(palette = "cool")