Re: [R] Another question on gplot

2009-07-23 Thread ONKELINX, Thierry
nden: donderdag 23 juli 2009 14:25 Aan: r-help@r-project.org Onderwerp: [R] Another question on gplot 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..)) +

[R] Another question on gplot

2009-07-23 Thread RON70
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