Title: | Poisson Palettes |
---|---|
Description: | An R package for Poisson Consulting colour palettes. |
Authors: | Evan Amies-Galonski [aut, cre] (-3188), Joe Thorley [aut] , Poisson Consulting [cph, fnd] |
Maintainer: | Evan Amies-Galonski <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9000 |
Built: | 2024-11-01 16:19:42 UTC |
Source: | https://github.com/poissonconsulting/poispalette |
lines
lines
lines
An example data set for plotting
lines
lines
points
points
points
An example data set for plotting
points
points
poisson colours
pois_cols(colours = NULL)
pois_cols(colours = NULL)
colours |
Character names of Poisson colours |
A named vector of hex colours
pois_cols()
pois_cols()
poisson palettes
pois_pal(palette = NULL)
pois_pal(palette = NULL)
palette |
Character names of Poisson palettes. One of 'discrete', 'hot', 'cool'. |
A named vector of hex colours
pois_pal()
pois_pal()
Return function to subset a user provided colour palette
pois_pal_custom(palette, order = NULL, reverse = FALSE, ...)
pois_pal_custom(palette, order = NULL, reverse = FALSE, ...)
palette |
Character name of palette in pois_palettes |
order |
A numeric or character vector indicating the order of colours in the palette. Can be a subset. |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments to pass to colourRampPalette() |
Return function to subset poisson colour palette
pois_pal_disc(palette = "discrete", order = NULL, reverse = FALSE, ...)
pois_pal_disc(palette = "discrete", order = NULL, reverse = FALSE, ...)
palette |
Character name of palette. See |
order |
A numeric or character vector indicating the order of colours in the palette. Can be a subset. |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments to pass to colourRampPalette() |
Return interpolated color gradient for a continuous poisson colour palette
pois_pal_grad( palette = "cool", reverse = FALSE, n_steps = 256, n_col = getOption("poispalette.n_col", NULL) )
pois_pal_grad( palette = "cool", reverse = FALSE, n_steps = 256, n_col = getOption("poispalette.n_col", NULL) )
palette |
Character name of palette in pois_palettes, See |
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) |
discrete colour scale constructor for poisson colours
scale_colour_disc_poisson( ..., palette = getOption("poispalette.colours", "discrete"), order = NULL, reverse = FALSE )
scale_colour_disc_poisson( ..., palette = getOption("poispalette.colours", "discrete"), order = NULL, reverse = FALSE )
... |
Additional arguments passed to discrete_scale() |
palette |
Character name of palette in pois_palettes |
order |
A numeric or character vector indicating the order of colours in the palette. Can be a subset. |
reverse |
Boolean indicating whether the palette should be reversed |
gradient colour scale constructor for poisson colours
scale_colour_grad_poisson( ..., palette = getOption("poispalette.gradient", "cool"), reverse = FALSE, n_steps = 256, n_col = getOption("poispalette.n_col", NULL) )
scale_colour_grad_poisson( ..., palette = getOption("poispalette.gradient", "cool"), reverse = FALSE, n_steps = 256, n_col = getOption("poispalette.n_col", NULL) )
... |
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) |
discrete fill scale constructor for poisson colours
scale_fill_disc_poisson( ..., palette = getOption("poispalette.colours", "discrete"), order = NULL, reverse = FALSE )
scale_fill_disc_poisson( ..., palette = getOption("poispalette.colours", "discrete"), order = NULL, reverse = FALSE )
... |
Additional arguments passed to discrete_scale() |
palette |
Character name of palette in pois_palettes |
order |
A numeric or character vector indicating the order of colours in the palette. Can be a subset. |
reverse |
Boolean indicating whether the palette should be reversed |
Gradient fill scale constructor for poisson colours
scale_fill_grad_poisson( ..., palette = getOption("poispalette.gradient", "cool"), reverse = FALSE, n_steps = 256, n_col = getOption("poispalette.n_col", NULL) )
scale_fill_grad_poisson( ..., palette = getOption("poispalette.gradient", "cool"), reverse = FALSE, n_steps = 256, n_col = getOption("poispalette.n_col", NULL) )
... |
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) |