showColors | R Documentation |
Simple visualization of available color palettes and spectra from left to right.
showColors(input, n = 20, title_size = 10)
showColorPalettes(input = validColorPalettes(flatten = TRUE), n = 15)
showColorSpectra(input = validColorSpectra(flatten = TRUE), n = 20)
input |
Character vector of input options for |
n |
Numnber of colors. |
title_size |
Size of plot titles. |
A plot of ggplots arranged with gridExtra::arrange.grid()
.
showColors(input = c("inferno", "Reds", "npg", "uc"), n = 10)
showColors(input = validColorPalettes()[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.