Hi,
Try lines function to get a distribution cruve:

X<-c(8, 9, 7, 6, 7, 8, 5, 4, 16, 12, 11, 10, 8, 7, 9 )
 > hist(X, prob=TRUE)
 > lines(density(X))

Regrads
ML

Le 29/11/11 11:04, Gwanmesia@aol.com a écrit :
> Dear Sir,
>
> I am reviewing a group of patients who had a surgical procedure. The
> histogram of the age frequency has a bimodal distribution. I am trying to
> emphasise this by adding a distribution curve on the histogram.
>
> Let's say the ages are 8, 9, 7, 6, 7, 8, 5, 4, 16, 12, 11, 10, 8, 7, 9  for
> example. How can I plot a histogram with a distribution curve on  it?
>
> Your help is highly appreciated.
>
> Ivo
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org 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.
>


-- 
####################################
Mohamed Lajnef,IE INSERM U955 eq 15#
P?le de Psychiatrie 		   #	
H?pital CHENEVIER                  #
40, rue Mesly                      #
94010 CRETEIL Cedex FRANCE         #
Mohamed.lajnef@inserm.fr           #
tel : 01 49 81 32 79		   #
Sec : 01 49 81 32 90               #
fax : 01 49 81 30 99               #
####################################



	[[alternative HTML version deleted]]

