An R implementation of Steinarsson’s Largest-Triangle-Three-Buckets algorithm for downsampling time series–like data
Sveinn Steinarsson. 2013. Downsampling Time Series for Visual Representation. MSc thesis. University of Iceland.
The R package comes with a test data set downloaded from http://flot.base.is/ and converted from JSON to tab-delimited format. The resulting graphs look pretty similar to me.
library(LTTB) ?LTTB example(LTTB)
If you find a bug or have an idea for improving this script, please submit it here: