Hi, Thanks for the hint! Of course, you are correct.
Here is a link with some background for others with tired heads: http://luna.cas.usf.edu/~mbrannic/files/regression/Logistic.html On Sep 4, 1:15 pm, "ONKELINX, Thierry" <[email protected]> wrote: > You could use a glm with the binomial family to model that. > > A solution with ggplot2 > > library(ggplot2) > ggplot(dataset, aes(x = x, y = y, weights = n)) + > geom_smooth(method = "glm", family = binomial) > geom_point() > > ------------------------------------------------------------------------ > ---- > ir. Thierry Onkelinx > Instituut voor natuur- en bosonderzoek / Research Institute for Nature > and Forest > Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, > methodology and quality assurance > Gaverstraat 4 > 9500 Geraardsbergen > Belgium > tel. + 32 54/436 185 > [email protected] > ______________________________________________ [email protected] 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.

