At some point in 2013, I read (can’t remember where) that 2012 was a rare year for the S&P 500 where no day’s closing price was lower than the closing price for the first day. So if you bought on the first day of 2012, you never had a loss for the entire year. Well, the same thing happened 2013, so I just had to do some analysis. Below is a dimple.js chart built using rCharts with the minimum close price for the year divided by the close price for the first day of that year.

*data source: Yahoo! Finance, Standard & Poors*

*Related*

To

**leave a comment** for the author, please follow the link and comment on their blog:

** Timely Portfolio**.

R-bloggers.com offers

**daily e-mail updates** about

R news and

tutorials on topics such as:

Data science,

Big Data, R jobs, visualization (

ggplot2,

Boxplots,

maps,

animation), programming (

RStudio,

Sweave,

LaTeX,

SQL,

Eclipse,

git,

hadoop,

Web Scraping) statistics (

regression,

PCA,

time series,

trading) and more...

If you got this far, why not

__subscribe for updates__ from the site? Choose your flavor:

e-mail,

twitter,

RSS, or

facebook...