Skip to content

Instantly share code, notes, and snippets.

@Protonk
Created December 2, 2010 18:03
Show Gist options
  • Save Protonk/725764 to your computer and use it in GitHub Desktop.
Save Protonk/725764 to your computer and use it in GitHub Desktop.
Just a simple time series
library(WDI)
library(ggplot2)
growth.df<-WDI(country="all",indicator="NY.GDP.MKTP.KD.ZG",start=1961,end=2009,extra=TRUE)
growth.df<-subset(growth.df,growth.df$region != "Aggregates")
qplot(year,NY.GDP.MKTP.KD.ZG,data=growth.df,group=country,geom="line",alpha=I(0.1))+scale_y_continuous("GDP Growth");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment