Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
< size="1">for background please see prior posts < >< size="1">Horizon Plot Already Available< >< size="1"> and < >< size="1">Cubism Horizon Charts in R< >
Good visualization simplifies, and stories are better told with effective and pretty visualizations.
Although horizon plots are not immediately intuitive, I have embraced them as an extremely effective method of analyzing more than four series. I hope they become much more popular, so I can use them with much more confidence. If we look at a traditional cumulative growth chart on the managers dataset provided by PerformanceAnalytics, I get confused by too many lines and colors since there are 10 different series. While this chart works, it can be better.
From TimelyPortfolio |
We could panel the data, but I think this makes comparison even more difficult.
From TimelyPortfolio |
In this case and many others, horizon plots provide what I feel to be both a more attractive and effective visualization. Here is an example using latticeExtra’s horizonplot function with very little adjustment. You can detect both comovement or seasonality and can compare the amplitude simultaneously.
From TimelyPortfolio |
With a little additional formatting, we can get an ideal visualization-pretty and effective. The ability to scale well beyond 10 series offers power that we cannot obtain with a traditional line chart.
From TimelyPortfolio |
As another example, let’s look at how we can use horizon plots to monitor a moving average system similar to the Mebane Faber’s timing model. If you follow the link, you can see a decent visualization of the price and moving average. A horizon plot could accomplish this much more efficiently.
From TimelyPortfolio |
I personally like the mirrored horizon plot even better. Let’s incorporate that.
From TimelyPortfolio |
Please help me popularize these extremely powerful charts.
R code from GIST (do raw for copy/paste):
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.