For my Q2 2012 commentary, I tried multiple graphs to illustrate the disconnect of the US stock markets with the rest of the world. I think I finally settled on this simple Excel bar graph populated by Bloomberg data, but I thought some might like to see some of the R graphical artifacts as I explored how best to illustrate my point.
![]() |
| From TimelyPortfolio |
Although I settled on a 1 year performance chart, I really wanted to show more history, but without all the noise of a daily, weekly, or even monthly chart. I tried a chart connecting the 200 day max/min points, but it still seemed noisy and difficult to follow. One big letdown was Yahoo! Finance not providing DJUBS, E1DOW, or P1DOW any more.
![]() |
| From TimelyPortfolio |
![]() |
| From TimelyPortfolio |
I then thought connecting the end of year points might offer a nice simplification, and I probably liked this best of the R charts. This shows enough of the path to see the universal move up to 2010, and then the disconnect.
![]() |
| From TimelyPortfolio |
![]() |
| From TimelyPortfolio |
Even one R base graphics chart. Thanks again Josh for the fork.
![]() |
| From TimelyPortfolio |
As one other option, I thought I would try to just connect beginning, middle, and end since December 2008. This certainly shows the huge disconnect between the U.S. and the rest of the world, but I found it difficult to describe the methodology within the chart.
![]() |
| From TimelyPortfolio |
![]() |
| From TimelyPortfolio |
I hope this helps someone somewhere. As always, I very much enjoy comments and opinions.
R code in GIST (do raw for copy/paste):
R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series,ecdf, trading) and more...









Zero Inflated Models and Generalized Linear Mixed Models with R.
Zuur, Saveliev, Ieno (2012).