this is the command i made for a normal distribution, but when i try to plot
the histograms, i dont know why the bars don't stick on the line...

nsamples<-1000
sampsize<-15
Samples<-matrix(rnorm(nsamples*sampsize,0,1),nrow=nsamples) 
a<-apply(Samples,1,var)
NC14<-a*14
x<-0:40
plot(x,dchisq(x,14),type='h') 
hist(NC14,freq=F,add=T)
-- 
View this message in context: 
http://www.nabble.com/Need-help-on-ploting-Histograms-tp23652178p23652178.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
[email protected] 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