snap2palette | R Documentation |
import your own snap and make a palette
snap2palette(path, n, plot_picture = FALSE, plot_palette = TRUE)
path |
path to picture in png form |
n |
number of colours in outputted palette |
plot_picture |
plot picture segmented into palette colours, defaults to FALSE (TRUE or FALSE) |
plot_palette |
plot resulting palette, defaults to TRUE |
new palette
https://www.r-bloggers.com/color-quantization-in-r/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.