Created
February 10, 2016 17:33
-
-
Save luiscruz/d559b6af843cfba9f7ba to your computer and use it in GitHub Desktop.
Frequency Polygon with different scales
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Author
luiscruz
commented
Feb 10, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment