Learn R Programming

PrettyCols

{PrettyCols} is an R package containing aesthetically pleasing colour palettes.

The structure of the package is based on code from the {PNWColors}, {wesanderson}, and {MetBrewer} packages.

Installation

{PrettyCols} is available on CRAN. Install using:

install.packages("PrettyCols")

or install the development version from GitHub:

remotes::install_github("nrennie/PrettyCols")

See nrennie.rbind.io/PrettyCols for full documentation.

If you have a suggestion of an additional feature, or find a bug, please file an issue on the GitHub repository.

A Python implementation of this package can be found at github.com/nrennie/PrettyPyCols.

Contributor guidelines

If you'd like to contribute to {ggflowchart}, I'd welcome your help. If you're making a PR, please follow the guidelines below, to make the collaboration easier:

  • You have updated the NEWS and version number in DESCRIPTION.
  • You have checked that R CMD check passes with no ERRORs or WARNINGs. If there is a NOTE - please outline what it is in the PR.
  • You have checked that lintr::lint_package() passes.
  • You have checked the list of packages in Imports is still in alphabetical order to enable better tracking of dependencies as the package grows.
  • You have not used the base R |> pipe (we're not quite ready to specify R 4.1 or higher as a dependency yet!).
  • If this is a feature request PR (not a bug fix) please make sure it relates to an issue that has not been assigned to someone else (and tag the issue in the PR description).

If these checks fail, and there is no response from the PR author for 1 month, the PR will be automatically closed.

Copy Link

Version

Install

install.packages('PrettyCols')

Monthly Downloads

305

Version

1.1.0

License

CC0

Issues

Pull Requests

Stars

Forks

Maintainer

Nicola Rennie

Last Published

June 19th, 2024

Functions in PrettyCols (1.1.0)

scale_fill_pretty_div

Plotting with PrettyCols palettes for fill colour ggplot2
scale_fill_pretty_d

Plotting with PrettyCols palettes for colour ggplot2
colourblind_friendly

Returns a data frame of colourblind friendly colour palettes
prettycols

Generates the colour palettes
scale_color_pretty_c

Plotting with PrettyCols palettes for colour ggplot2
scale_colour_pretty_d

Plotting with PrettyCols palettes for colour ggplot2
scale_color_pretty_d

Plotting with PrettyCols palettes for colour ggplot2
scale_colour_pretty_c

Plotting with PrettyCols palettes for colour ggplot2
colorblind_friendly

Returns a data frame of colorblind friendly colour palettes
scale_color_pretty_div

Plotting with PrettyCols palettes for colour ggplot2
PrettyColsPalettes

Complete list of palettes.
PrettyCols-package

PrettyCols: Pretty Colour Palettes
view_all_palettes

Prints all available colour palettes
scale_colour_pretty_div

Plotting with PrettyCols palettes for colour ggplot2
scale_fill_pretty_c

Plotting with PrettyCols palettes for colour ggplot2