How to build a color palette from any image with R and k-means algo

This post was kindly contributed by Яante - go there to comment and to read the full post.

Great painters can teach us a lot about how to compose a good palet for our plot. That is why we look here at a way to algorithmically derive a colour palette from any jpeg image. Application of derived palettes on ggplot is also showed.

The post How to build a color palette from any image with R and k-means algo appeared first on MilanoR.