polyomics_pal: Polyomics Palettes

View source: R/polyomics_palettes.R

polyomics_palR Documentation

Polyomics Palettes

Description

Returns a list of colours from a set colour palette list

Usage

polyomics_pal(palette = "main", reverse = FALSE, ...)

Arguments

palette

NAmed colour palette to use

reverse

Reverse the order of the colour list

...

Params set to NULL

Value

Returns a list of colours from a set colour palette list

Examples

# Get the list of Polyomics colours
polyomics_colors <- polyomics_colours()
# Get the list of Polyomics colour palettes
polyomics_palettes <- polyomics_palettes_list()

# Set the number of colours to retrieve
levels <- 3

# Set the palette to use
cols <- polyomics_pal("hot")(levels)

# Display the colour palettes
n_seq <- seq_along(cols)
image(n_seq, 1, as.matrix(n_seq), col = cols,
      xlab = "", ylab = "", xaxt = "n", yaxt = "n", bty = "n",
      main = "Cool palette of polyomics Inc")
text(n_seq, 1, cols, col = "white", srt = 90)


GrahamHamilton/PolyomicsColours documentation built on Oct. 3, 2022, 3:37 p.m.