This R package is can help you to distinguish your work in R with very specific and beautiful colors used by great artist Martiros Saryan
Chekc if you have devtools
package installed, if you do not, install it with
install.packages("devtools")
library(devtools)
install_github("Avetik666/MartirosSaryan")
At first load the package by running
library(martirossaryan)
The packge has 3 functions:
getSaryanPallete(<name of painting>)
- this function returns pallete of 32
colours from Martiros Saryan's specified painting. Note that the collor pallate
names are the names of the actual paintings from which they are taken, in lower
case and instead of spaces dashes (-) are used.:w
getPalleteNames()
- returns all Martiros Saryan color palletes currently
present in the package
getImagePallete(image = <path to image>, color_number = <number of colors>)
-
extractes color palletes from any given image using K-Means clustering.
Those are links to shinyapp example