January 9, 2011

Friends on Facebook

Friends on Facebook

The R code used to generate the above plot. [This is my first plot using R.]
---
x=seq(0,5,0.01)
y=exp(-x)
#pdf("~/tmp/foo-R.pdf")
jpeg("~/tmp/foo-R.jpeg")
plot(x, y, xlab='Time spent on facebook (hours/day)', ylab='Fraction of "friends" you actually socialize with', type='line', lwd=3, cex.lab=1.5, cex.axis=1.5, xaxs='i', yaxs='i')
grid(10,10)
dev.off()
---

1 comment:

Prem Piyush Goyal said...

Hahaha!! :) :) You should do more such stuff!