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.
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.
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.
Even one R base graphics chart. Thanks again Josh for the fork.
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.
I hope this helps someone somewhere. As always, I very much enjoy comments and opinions.
R code in GIST (do raw for copy/paste):
To leave a comment
for the author, please follow the link and comment on their blog: Timely Portfolio
offers daily e-mail updates
news and tutorials
on topics such as: Data science
, Big Data, R jobs
, visualization (ggplot2
), programming (RStudio
, Web Scraping
) statistics (regression
, time series
) and more...
If you got this far, why not subscribe for updates
from the site? Choose your flavor: e-mail
, or facebook