knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

poispalette

Lifecycle: stable R-CMD-check Codecov test coverage License: MIT

Introduction

poispalette is an R package that facilitates the use of Poisson Consulting colour palettes in data plots and maps.

Installation

To install the latest development version from GitHub

# install.packages("remotes")
remotes::install_github("poissonconsulting/poispalette")

Demonstration

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")

Contribution

Please report any issues.

Pull requests are always welcome.

Code of Conduct

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.



poissonconsulting/poispalette documentation built on June 15, 2025, 11:52 a.m.