Skip to content

Commit

Permalink
Add another example
Browse files Browse the repository at this point in the history
  • Loading branch information
vikjam committed May 2, 2016
1 parent 30a2c5c commit 495046c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@ ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
scale_color_manual(values = ernst.pal)
```
![iris-ernst](figures/iris-ernst.png)

```R
# A gradient
library(ggplot2)
library(RColorLisa)
rothko.pal <- color.lisa.pal(5, "Untitled (Orange, Yellow, Red) by Mark Rothko")
ggplot(faithfuld, aes(waiting, eruptions)) +
geom_raster(aes(fill = density), interpolate = TRUE) +
scale_fill_gradientn(colours = rothko.pal)
```
![faithful-rothko](figures/faithful-rothko.png)
Binary file added figures/faithful-rothko.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 495046c

Please sign in to comment.