Hi

Don't use t as var names, because t is also a function (transpose).
This code should work...
set.seed(1)
T <- rnorm(500)
qplot(T, geom = "blank") + 
geom_histogram(aes(y = ..density..), colour = "black", fill = "blue") + 
stat_density(geom = "line", colour = "red")



--
View this message in context: 
http://r.789695.n4.nabble.com/ggplot-2-Histogram-with-bell-curve-tp3580359p3580457.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to