2006–2014 using FRBData

2006–2014 using FRBData package

Treasury yield curve from the Volcker era through Greenspan, Bernanke, and Yellen.

require(YieldCurve)
data(FedYieldCurve)
maturities <- c(3/12,6/12,1,2,3,5,7,10)
howmany=NROW(FedYieldCurve)
require(animation)
saveGIF({
for (i in 1:howmany) {
plot(maturities, FedYieldCurve[i,], type="o",lwd=3, col="#333333", xlab="Maturities structure in years", ylab="Interest rates values",ylim=c(0,15) )
title(main=paste("Federal Reserve yield curve observed at", time(FedYieldCurve[i])))
grid()
}
},interval=.05,movie.name="yield curve evolution.gif", ani.width=300,ani.height=300)
I can’t upload a larger view, but just run that code with a bigger width & height, you might get a ~10MB gif. I shrank it further with `gifsicle`

.

Here’s the animated history of the ECB yield curve, as well:

Related

To

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

isomorphismes .

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 ...