5 thoughts on “The fanplot package for R”

  1. Wow, that is awesome work. Very impressed (just ran your Bank of England blog post data through this). I’m good with R but am looking for something to generate much the same plots but with a javascript front end library for an application I’m working on. Any idea or pointers to something that might suffice?

    1. Thanks Daryl. Never seen anything in javascript, but never looked too hard. It sure it wont be too tricky to implement. The fan function is just repetitively plotting polygons on top of each other with increasing levels shading (within a single for loop). Once you have the percentiles derived and colour palette at hand (both of which are simple to do in R) its all fairly straight-forward.

Leave a comment