Code Monkey home page Code Monkey logo

rtist's Introduction

rtist

Travis build status Dependencies CRAN status Downloads

Overview

“They’ll sell you thousands of greens. Veronese green and emerald green and cadmium green and any sort of green you like; but that particular green, never.” - Pablo Picasso, (1966)

Use the palettes of famous artists in your own visualizations.

Installation

Install from CRAN or from Github.

# Using install.packages().
install.packages("rtist")

# Install remotes to download.
install.packages("remotes")

# And then install from github.
remotes::install_github("tomasokal/rtist")

You can also use rtist through Emil Hvitfeldt’s popular paletteer package.

Palettes

rtist provides color palettes from famous artists and paintings. You can quickly view and see all possible palettes using rtist_help().

# Load package
library(rtist)

# Display possible palettes
rtist::rtist_help()
#>        rtist                      Painting            Artist
#> 1    raphael Saint Catherine of Alexandria           Raphael
#> 2    hokusai       Great Wave off Kanagawa           Hokusai
#> 3    vermeer     Girl with a Pearl Earring  Johannes Vermeer
#> 4      degas                      L Etoile       Edgar Degas
#> 5    davinci                     Mona Lisa Leonardo Da Vinci
#> 6    vangogh                  Starry Night  Vincent Van Gogh
#> 7     hopper                    Nighthawks     Edward Hopper
#> 8      klimt                      The Kiss      Gustav Klimt
#> 9  rembrandt                The Nightwatch         Rembrandt
#> 10     munch                    The Scream      Edward Munch
#> 11    warhol                  Flower, 1964       Andy Warhol
#> 12   okeeffe              Abstraction Blue  Georgia O'Keeffe
#> 13 oldenburg    Red Tights with Fragment 9   Claes Oldenburg
#> 14   picasso                     The Dream     Pablo Picasso
#> 15   pollock                      Number 1   Jackson Pollock

There are 15 palettes total.

After finding a palette, go ahead and select that palette along with however many colors you want.

# Load package
library(rtist)

# Choose Warhol
rtist::rtist_palette("warhol")

# Choose 4 colors from Picasso
rtist::rtist_palette("picasso", 4)

Credits

This package was mostly built to teach me package development. It was largely inspired by Ewen Henderson’s ghibli package and Karthik Ram’s wesanderson package.

The palettes themselves come from 10 Color Palettes Based on Famous Paintings and Color Lisa. Check those out for other awesome palettes.

rtist's People

Contributors

tomasokal avatar

Stargazers

Insang Song avatar Rachel Torres avatar Rongrong Chai avatar Anh N Tran avatar Zeyun avatar  avatar  avatar Peter Tibert Stoltze avatar Susheel Bhanu Busi avatar i.efth. avatar Dr. Gürol Canbek avatar  avatar Colin Wilson avatar Jacob Schreiber avatar Maria Gargiulo avatar Matt Kerlogue avatar Alberto avatar Guido Schmidt avatar nicolas barradeau avatar Norbert Köhler avatar  avatar Ajay Mehta avatar Ronan Abreu avatar Will Bonnell avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.