Area between curves
December 9, 2013 Leave a comment
This is what I like about ‘R’. This one line is enough to apply a shade of color
to the area between two curves. Apart from the functional programming aspects(
http://adv-r.had.co.nz/), I am interested in its powerful API’s used to visualize and parse data.
polygon( c(data$Time, rev(data$Time)), c(as.numeric(data$Used), rev(as.numeric(data$Committed))), col = "antiquewhite1", border = NA )