Skip to content

Instantly share code, notes, and snippets.

@Protonk
Created November 23, 2010 19:15
Show Gist options
  • Save Protonk/712329 to your computer and use it in GitHub Desktop.
Save Protonk/712329 to your computer and use it in GitHub Desktop.
WDI PPP Plots
#Plots
overall.plot<-qplot(log(GDP.per),lambda,data=GDP.giant,geom="point",alpha=I(0.3))+stat_smooth(method="lm");
byregion.plot<-qplot(log(GDP.per),lambda,data=GDP.giant,colour=region,geom="point",alpha=I(0.3),log="x")+facet_wrap(~region)+scale_y_continuous(limits=c(0,4))+scale_x_continuous('')+opts(aspect.ratio = 0.5);
lambda.year.plot<-qplot(year,lambda,data=GDP.giant,colour=region,geom="smooth")+scale_y_continuous(limits=c(0,2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment