ダージリン急行を観たのでwesandersonパッケージを紹介します

映画「ダージリン急行」を観ました。

監督はその色づかいに定評のあるWes Anderson。
Rのパッケージには何でもあるので、当然Wes Andersonの色づかいをモチーフにしたパッケージなどもあります。

インストールはgithubから。

devtools::install_github("karthik/wesanderson")
library(wesanderson)

今回観たダージリン急行の場合だと2種類用意されています。

display.wes.palette(5, "Darjeeling")

display.wes.palette(5, "Darjeeling2")


ggplot2と組み合わせると綺麗に仕上がりますね。

library(ggplot2)
qplot(factor(cyl), data=mtcars, geom="bar", fill=factor(vs)) + 
  scale_fill_manual(values = wes.palette(2, "Darjeeling2"))


Rcolorbrewerといった定番のカラーパレットに飽きたら、こういうパッケージを使ってみるというのもありかもしれません。
enjoy!