[R] Another question on gplot

RON70 ron_michael70 at yahoo.com
Thu Jul 23 14:24:51 CEST 2009


I am getting following strange error :

library(sn)
library(ggplot2)

dat1 <- as.matrix(rsn(1000, 0, 1, 0))[,1]

ggplot() + geom_histogram(aes(x = dat1, y = ..density.., fill = ..count..))
+
              xlab("Distribution") + scale_y_continuous("") 


Error: No data for layer

Can anyone please tell me why it is coming?
-- 
View this message in context: http://www.nabble.com/Another-question-on-gplot-tp24624709p24624709.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list