Hi, It works perfectly! Though I'm still stuck on the height of the whiskers with errorbarh() :)
Regards/Cordialement Benoit Boulinguiez -----Message d'origine----- De : hadley wickham [mailto:h.wick...@gmail.com] Envoyé : dimanche 12 juillet 2009 11:09 À : Benoit Boulinguiez Cc : r-help@r-project.org Objet : Re: [R] curve from a formula with ggplot2 Hi Benoit, Have a look at http://had.co.nz/ggplot2/stat_function.html. Does that help? Hadley On Tue, Jul 7, 2009 at 11:15 AM, Benoit Boulinguiez<benoit.boulingu...@ensc-rennes.fr> wrote: > Hi all, > > I'm smoothly transferring my lattice graphs to ggplot2 graphs, but I'm > stuck on representing a curve from a formula. > I'm looking for the equivalent of curve() in ggplot2, Hadley Wickham > mentions geom_curve, but as far as I've seen in the help it doesn't exist. > > My need is to plot a regular scatter plot of experimental data (easy > to do > actually) and then add the fitting model according to a specific > formula like y = a*(b*x^n)/(1+b*x^p) > > where a,b,n and p are known parameters. > > I guess it's possible and easy to add this layer with ggplot, somehow > I didn't find the right function. > > Any help would be warmly appreciated. > > Regards/Cordialement > > ------------- > Benoit Boulinguiez > Ph.D student > Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR CNRS 6226 > "Sciences Chimiques de Rennes" > Avenue du Général Leclerc > CS 50837 > 35708 Rennes CEDEX 7 > Tel 33 (0)2 23 23 80 83 > Fax 33 (0)2 23 23 81 20 > <http://www.ensc-rennes.fr/> http://www.ensc-rennes.fr/ > > > > [[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. > > -- http://had.co.nz/ ______________________________________________ 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.