Title: | Nature Inspired Colours |
Version: | 0.0.2 |
Description: | Color palettes based on nature inspired colours in "Sri Lanka". |
URL: | https://github.com/thiyangt/nic |
BugReports: | https://github.com/thiyangt/nic/issues |
License: | CC0 |
Encoding: | UTF-8 |
RoxygenNote: | 7.2.1 |
Suggests: | knitr, palmerpenguins, rmarkdown, ggplot2, tidyr |
VignetteBuilder: | knitr |
NeedsCompilation: | no |
Packaged: | 2023-03-12 14:39:45 UTC; thiyangashaminitalagala |
Author: | Thiyanga S. Talagala
|
Maintainer: | Thiyanga S. Talagala <ttalagala@sjp.ac.lk> |
Repository: | CRAN |
Date/Publication: | 2023-03-13 11:30:02 UTC |
NIC Palette Generator.
Description
This function builds palettes based on natural scenes in the Pacific Northwest. Each palette is inspired by the author's nature photography of the region, and checked for color blind safety using Chroma.js Color Palette Helper. View photos for each palette On Github.
Usage
nic_palette(name, n, type = c("discrete", "continuous"))
Arguments
name |
Name of the color palette. Options are |
n |
Number of colors in the palette. Palletes include 5-8 colors, which can be used discretely, or if more are desired, used as a gradient. If omitted, n = length of palette. |
type |
Usage of palette as "continuous" or "discrete". Continuous usage interpolates between colors to create a scale of values. If omitted, function assumes continuous if n > length of palette, and discrete if n < length of palette. |
Value
A vector of colors.
Examples
nic_palette("applecroton_2",n=100,type="continuous")
nic_palette("coleusa_2",2)
nic_palette("coleusb_3",50)
Nature Inspired Colour Palatte Package
Description
This is a collection of color palettes for R inspired by leaves. This work is inspired by the
pnwcolours package in R and codes are modifies using pnwcolours.
Create colour palettes
Names: applecroton, colleasa, colleasb
Type names(nic_palettes)
to view the names of colour palattes
Usage
nic_palettes
Format
An object of class list
of length 15.