How do you use hist() to plot relative frequencies in R?
If I do the following, I will get a density plot, but I want a relative frequency plot:
a &l
histo<-hist(yourvariable) barplot(histo$counts/n,col="white",space=0)->bp # n=length(yourvariable) axis(1,at=c(bp),labels=histo$mids) title(ylab="Relative Frequency",xlab="Your Variable Name")