get_cols: Set and view the color palettes

View source: R/get_cols.R

get_colsR Documentation

Set and view the color palettes

Description

Set and view the color palettes

Usage

get_cols(cols = "normal", palette = 1, show_col = T, seed = 123)

Arguments

cols

Vector of colors, users can define the cols manually. This may also be a single character, such as normal and random, to a palette as specified by 'palettes()IOBR'

palette

Numeric value corresponding with color palette. Default is 1, other options: 2, 3, 4

show_col

Whether to show color palettes

seed

Seed of the random number generator, default is 123. The parameter works when cols ="random"

Value

Vector of colors

Examples

mycols<-get_cols()

IOBR/IOBR documentation built on May 5, 2024, 2:34 p.m.