Skip to content

An R package for working with Poisson Consulting colour palettes

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

poissonconsulting/poispalette

Repository files navigation

poispalette

Lifecycle: experimental 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")
#>      black       blue        red     yellow       aqua     purple      green 
#>  "#000000"  "#053296"  "#E84D22"  "#F7B500"  "#00706C"  "#821C65"  "#63BB42" 
#> light blue     orchid       grey 
#>  "#90BDE5"  "#D888CF"  "#7D7D7D"

pois_cols(c("red", "yellow"))
#>       red    yellow 
#> "#E84D22" "#F7B500"

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.

About

An R package for working with Poisson Consulting colour palettes

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published