library(agricolae)
data(growth)
attach(growth)
#startgraph
h1<-hist(height,col="green",xlim=c(8,14))
normal.freq(h1,col="blue")
#endgraph
#startgraph
h2<-hist(height,col="yellow",xlim=c(8,14),probability=TRUE)
normal.freq(h2,probability=TRUE)
#endgraph
Run the code above in your browser using DataLab