View source: R/polyomics_palettes.R
polyomics_pal | R Documentation |
Returns a list of colours from a set colour palette list
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
# 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.