Can take in images in either .jpg, .jpeg, or .png format and creates a colour palette of the most frequent colours used in the image. Also provides some custom colour palettes.
colouR is a useful tool for analyzing and utilizing the colors in
images, as well as providing color palettes. A demonstration of the
package can be found here:
https://alaninglis.github.io/colouR/articles/colouR.html
You can install colouR directly from CRAN via:
install.packages("colouR")
Alternativley, you can install the development version of colouR from
GitHub with:
# install.packages("devtools")
devtools::install_github("AlanInglis/colouR")
You can then load the package with:
library(corrViz)