discrete_colors | R Documentation |
Colour palettes designed for discrete, categorical data with no more than 40 categories.
c30(n = 30)
c40(n = 40)
n |
Number of colours to return. (default: maximum number of available colours) |
The c30()
palette has 30 unique colours and c40()
palette has 40
unique colours. The c40()
colour palette is taken from plotScoreHeatmap()
of the SingleR package (which itself is based on DittoSeq and
Okabe-Ito colors).
A vector of colours as hex strings.
I-Hsuan Lin
SingleR::plotScoreHeatmap()
# Show colours as pie charts
pie(rep(1, 30), col = c30(), main = "c30 palette")
pie(rep(1, 40), col = c40(), main = "c40 palette")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.