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..))
+
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
2 matches
Mail list logo