Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vikjam committed May 2, 2016
1 parent 10e1263 commit 903fa97
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/RColorLisa.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ color.lisa.pal <- function(n = 5, name) {
stringsAsFactors = FALSE)

n <- n + 1
unname(unlist(color.pals[which(color.pals$painting == name), 2:n]))
unname(unlist(color.lisa[which(color.lisa$painting == name), 2:n]))

}
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
# RColorLisa
Easily load color palettes from great painters into R. Based on the wonderful work of Ryan McGuire who created the beautiful site [Color Lisa](http://colorlisa.com).

## Usage

### Create a sequential palette for usage and show colors
```R
pretty.palette <- color.lisa.pal(5, "The Dream by Pablo Picasso")
image(1:5, 1, as.matrix(1:5), col = pretty.palette, xlab = "The Dream by Pablo Picasso",
ylab = "", xaxt = "n", yaxt = "n", bty = "n")
```

Binary file added figures/the-dream.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 903fa97

Please sign in to comment.