diff --git a/README.md b/README.md index 2f00243..63e62f5 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/figures/faithful-rothko.png b/figures/faithful-rothko.png new file mode 100644 index 0000000..3f7d239 Binary files /dev/null and b/figures/faithful-rothko.png differ