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

From: Hu Chen <chencheva_at_gmail.com>
Date: Sun 22 May 2005 - 18:07:00 EST


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@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 Received on Sun May 22 18:12:06 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:59 EST