Skip to content

Instantly share code, notes, and snippets.

@luiscruz
Created February 10, 2016 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luiscruz/d559b6af843cfba9f7ba to your computer and use it in GitHub Desktop.
Save luiscruz/d559b6af843cfba9f7ba to your computer and use it in GitHub Desktop.
Frequency Polygon with different scales
library(gridExtra)
library(ggplot2)
pf <- read.delim("https://s3.amazonaws.com/udacity-hosted-downloads/ud651/pseudo_facebook.tsv")
p1<-qplot(data=pf, x=friend_count, binwidth=30)
p2<-qplot(data=pf, x=log10(friend_count+1))
p3<-qplot(data=pf, x=sqrt(friend_count))
grid.arrange(p1,p2,p3,ncol=1)
@luiscruz
Copy link
Author

rplot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment