fauna_blues: Return shades of blue based on the Faunalytics color palette

View source: R/fauna_blues.R

fauna_bluesR Documentation

Return shades of blue based on the Faunalytics color palette

Description

This function takes an integer input and returns a corresponding number of hex codes based on the shades of blue in the Faunalytics color palette. In other words, you give it a number of shades of blue you need it, it gives you those shades. When given 1, it returns Faunalytics blue. When given 2, it returns Faunalytics dark blue and light blue. When given 3, it returns Faunalytics dark blue, blue, and light blue. All values greater than 3 are interpolated between Faunalytics dark blue and light blue, which will be the darkest and lightest colors returned.

Usage

fauna_blues(x)

Arguments

x

An integer greater than 0.

Value

A vector of hex codes

Examples

barplot(seq(1,5,1), col = fauna_blues(5))

Faunalytics/faunalytics documentation built on Nov. 2, 2024, 12:05 a.m.