Hi, you may want to look at Macdonald P (2006) Mixdist package for R www.math.mcmaster.ca/peter/mix/mix.html It also has an anova test for your model so you would know if your "possible sub-populations" are statistically significant of not. I don't know why actually this package is not posted on CRAN, though! I hope this helps, Monica ------------------------------------------------- Message: 50Date: Tue, 6 Nov 2007 11:40:07 +1300From: "Gareth Campbell" <[EMAIL PROTECTED]>Subject: [R] Combining Density plotsTo: "R Help" <r-help@r-project.org>Message-ID:<[EMAIL PROTECTED]>Content-Type: text/plain Hello, What I am trying to do is: Generate a density plot of a population of data. This data has a bimodaldistribution so I've isolated a couple of possible sub-populations and Iwant to overlay these two density plots over the first to see whether theyare contributing to the bimodal population. I can do this fine with plot(density(...)) and lines(density(...)) . Butthe resulting plots seem to NOT share the same scale or something. I've hada read up on bandwidth and fiddled with this but I can't quite get them howthey should look. Needless to say that the sub-populations are smaller (n)than the overall population. Does anyone know how to scale the populations so they all plot on the samescale with the density function? Tha! nks very much -- Gareth CampbellPhD CandidateThe University of Auckland P +649 815 3670M +6421 256 3511E [EMAIL PROTECTED]@gmail.com _________________________________________________________________
Get it now. 6971033 [[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.