knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
poispalette
is an R package that facilitates the use of Poisson Consulting colour palettes in data plots and maps.
To install the latest development version from GitHub
# install.packages("remotes") remotes::install_github("poissonconsulting/poispalette")
Retrieve Poisson colours and palettes
library(poispalette) pois_pal("discrete") pois_cols(c("red", "yellow"))
Plot discrete scales
library(ggplot2) ggplot2::ggplot(poispalette::points, aes(x = RandomX, y = RandomY)) + geom_point(aes(colour = ID), size = 2) + scale_colour_disc_poisson()
Plot gradient scales
ggplot2::ggplot(poispalette::points, aes(x = X, y = Y)) + geom_point(aes(colour = RandomX), size = 2) + scale_colour_grad_poisson(palette = "cool")
Please report any issues.
Pull requests are always welcome.
Please note that the poispalette project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.