[R] Warning message: Computation failed in `stat_bin()`: attempt to apply non-function

shahab shahab.mokari at gmail.com
Thu Mar 17 19:01:19 CET 2016


Hi,

I am trying to plot a sample dataset using ggplot2, but I am keep getting
the following error message and an empty plot!
Apparently something is wrong in the dataset, but what?

R :
pf<-read.csv('pseudo_facebook.tsv', sep='\t')

ggplot(x=aes(friend_count), data=pf) + geom_histogram()

stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
Warning message:
Computation failed in `stat_bin()`:
attempt to apply non-function

The dataset can be found at :
https://s3.amazonaws.com/udacity-hosted-downloads/ud651/pseudo_facebook.tsv

thanks,
/Shahab

	[[alternative HTML version deleted]]



More information about the R-help mailing list