[R] how to plot a fitted smooth line on histograms?

Wuming Gong wuming.gong at gmail.com
Sun May 22 15:14:31 CEST 2005


You may check the chapter 8 Probability distributions in An Introduction to R.

Wuming

On 5/22/05, Hu Chen <chencheva at gmail.com> wrote:
> for example,
> >x <- read.table(....);  here x is a vector containing  my data to be analyzed.
> >hist(x,plot=TRUE,breaks=200)
> 
> then I got a histogram graph. However, How can't get a smooth curve
> based on the histogram cells to show out the outline?
> 
> Thanks very much.
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list