polyomics_pal: Polyomics Palettes

Description Usage Arguments Value Examples

View source: R/polyomics_palettes.R

Description

Returns a list of colours from a set colour palette list

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# 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. 8, 2020, 12:21 a.m.