Description Usage Arguments Value Examples
View source: R/polyomics_palettes.R
Returns a list of colours from a set colour palette list
1 | polyomics_pal(palette = "main", reverse = FALSE, ...)
|
palette |
NAmed colour palette to use |
reverse |
Reverse the order of the colour list |
... |
Params set to NULL |
Returns a list of colours from a set colour palette list
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.