[R] need of elegant data manipulation

2010-08-16 Thread Benoit Boulinguiez
THC515 2 0.7940 22.4 THC515 2 0.8140 22.4 THC515 2 0.8340 22.4 THC515 2 0.8540 22.4 -- - Benoit Boulinguiez Ph.D student Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR CNRS 6226 Sciences Chimiques de Rennes

[R] ggplot sub- and superscript for axis name

2010-08-31 Thread Benoit Boulinguiez
Hi all, For publication purpose, I require to label ggplot figures axes with sub- or superscript text. I tried several ways, but never worked so far, to mix character string, sub- or superscripting on it and even worse, mathematical symbols. Let say I want to write the LateX equivalent

[R] ggplot bar geom: control the filling in the colour legend

2010-09-10 Thread Benoit Boulinguiez
Hi all, Is it possible to change the filling of the squares used to represent the colour legend in a bar plot with ggplot? in this example, fillings are raven black, I'd like them white. ggplot(diamonds, aes(clarity, colour = cut)) + geom_bar() Regards -- - Benoit Boulinguiez

Re: [R] ggplot bar geom: control the filling in the colour legend

2010-09-11 Thread Benoit Boulinguiez
Sorry my bad, example too simple try that one out. ggplot(diamonds, aes(clarity, fill=color,colour = cut)) + geom_bar(position = dodge) I want change the filling in the colour legend, not the filling of the bars. Regards Le 10/09/2010 20:41, Ista Zahn a écrit : ggplot(diamonds,

[R] ggplot: stat_smooth() and nls method

2010-09-11 Thread Benoit Boulinguiez
Hi all, Does one of you know if there is any way to combine a nls method in the stat_smooth of ggplot? Regards -- - 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

[R] ggplot bar geom: control the filling in the colour legend

2010-09-13 Thread Benoit Boulinguiez
filling in the colour legend, instead of the black one. Does anyone know how to rule that? All the best Le 11/09/2010 10:27, Benoit Boulinguiez a écrit : Sorry my bad, example too simple try that one out. ggplot(diamonds, aes(clarity, fill=color,colour = cut)) + geom_bar(position = dodge) I want

Re: [R] ggplot: stat_smooth() and nls method

2010-09-15 Thread Benoit Boulinguiez
great help, thanks a lot Le 14/09/2010 21:44, Brian Diggs a écrit : On 9/11/2010 7:52 AM, Benoit Boulinguiez wrote: Hi all, Does one of you know if there is any way to combine a nls method in the stat_smooth of ggplot? Regards According to the documentation for predict.nls, it is unable

Re: [R] From R to LaTeX to pdf?

2009-11-24 Thread Benoit Boulinguiez
Hi Joel, that's a LaTeX issue you have there, nothing wrong with R. You should post your message on a LaTeX Forum about how to use LaTeX. http://www.latex-community.org/ Regards Benoit -Message d'origine- De : r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] De

[R] use of lm() and poly()

2009-12-22 Thread Benoit Boulinguiez
tolerance: 1.378e-06 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

Re: [R] use of lm() and poly()

2009-12-23 Thread Benoit Boulinguiez
/Cordialement Benoit Boulinguiez -Message d'origine- De : Bert Gunter [mailto:gunter.ber...@gene.com] Envoyé : mardi 22 décembre 2009 18:26 À : 'Benoit Boulinguiez'; r-help@r-project.org Objet : RE: [R] use of lm() and poly() Get some statistical consulting help or read up on these topics

[R] curve from a formula with ggplot2

2009-07-07 Thread Benoit Boulinguiez
. 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

Re: [R] ggplot2: geom_errorbarh()

2009-07-15 Thread Benoit Boulinguiez
Hi, I expect 'width' to set the width of the horizontal line of the whisker, as it does with errobar() Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : hadley wickham [mailto:h.wick...@gmail.com] Envoyé : dimanche 12 juillet 2009 11:04 À : Benoit Boulinguiez Cc : r

Re: [R] ggplot2: geom_errorbarh()

2009-07-17 Thread Benoit Boulinguiez
doesn't work with errorbarh(), I guess... unfortunately... Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : hadley wickham [mailto:h.wick...@gmail.com] Envoyé : mercredi 15 juillet 2009 14:52 À : Benoit Boulinguiez Cc : r-help@r-project.org Objet : Re: [R] ggplot2

Re: [R] curve from a formula with ggplot2

2009-07-17 Thread Benoit Boulinguiez
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

[R] tweak a bit the legend wiht ggplot2

2009-07-23 Thread Benoit Boulinguiez
= grey94)) print(ads.graph) dev.off() 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

[R] nls convergence trouble

2008-09-03 Thread Benoit Boulinguiez
=port with under and upper limits. One of the parameter reaches the limit and the regression stops. How can I succeed with R to make this regression? Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR CNRS 6226 Sciences

Re: [R] nls convergence trouble

2008-09-04 Thread Benoit Boulinguiez
are the Langmuir parameters that describe the adsorption of a compound onto activated carbon. I need to assess these parameters. Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : Petr PIKAL [mailto:[EMAIL PROTECTED] Envoyé : mercredi 3 septembre 2008 17:58 À : Benoit Boulinguiez Cc

[R] writing simple function through script

2008-09-10 Thread Benoit Boulinguiez
on data called NC60.DATA I get an error. #yo(NC60.DATA) Erreur dans eval(expr, envir, enclos) : objet Xdata not found The object Xdata isn't found. Why? Is that possible to debug a function with R? Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau

[R] axis text size in scatter plot

2008-09-18 Thread Benoit Boulinguiez
Hi, Quite simple question I guess. Where could we specify the size of the text (axis,legend) for a scatter plot graphic made with plot()? Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR CNRS 6226 Sciences Chimiques de

[R] superscript text style in axis label in graph

2008-09-23 Thread Benoit Boulinguiez
Hi all, I'd like to use superscript or subscript in the axis label of a graph. Is that possible in R? For instance in xlab=Ce (mmol/m3), I'd need the 3 of cubic meter in superscript. Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20

[R] ode first step

2009-05-13 Thread Benoit Boulinguiez
of the function 'ode' cause I don't get how to define the function 'func' required by 'ode' Any help would be 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

Re: [R] ode first step

2009-05-14 Thread Benoit Boulinguiez
'. Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : Dieter Menne [mailto:dieter.me...@menne-biomed.de] Envoyé : jeudi 14 mai 2009 12:12 À : 'Benoit Boulinguiez' Objet : RE: [R] ode first step Try to hide yourself inside the function(). What would you see? No K1, for sure

Re: [R] ode first step

2009-05-17 Thread Benoit Boulinguiez
) -- Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : spencerg [mailto:spencer.gra...@prodsyse.com] Envoyé : vendredi 15 mai 2009 05:28 À : Benoit Boulinguiez Cc : dieter.me...@menne-biomed.de; r-help@r-project.org Objet : Re: [R] ode first step

[R] using lsoda() and nls() together

2009-05-26 Thread Benoit Boulinguiez
)) # have a look on the SSD # y is the vector of real data SSD-function(K1) { sum((y-func(K1))^2) } data-seq(1.5,2.1,,100) plot(data,sapply(data,SSD),type=l) -- Regards/Cordialement Benoit Boulinguiez

[R] text in graph with expression

2009-04-28 Thread Benoit Boulinguiez
) I just need to know how to avoid the use of a space (~) between the greek letter (Delta) and the rest of the text. 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

[R] par() default values

2008-09-30 Thread Benoit Boulinguiez
Hi all, Is that possible to get back to the par() default values easily? I played a bit with par() Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR CNRS 6226 Sciences Chimiques de Rennes Campus de Beaulieu, 263 Avenue du

[R] parameter assessment in differential equation

2008-10-15 Thread Benoit Boulinguiez
} are known parameters Of course I get experimental data sets of measured x as a function of time. If R can help to handle that, which functions have to be used (diff, optim, nls...) Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP

Re: [R] R plot

2008-10-17 Thread Benoit Boulinguiez
Hi, Personally I always use xlim and ylim with the plot or points function like that: plot( X,Y,pch=16,col=2,cex.axis=1.5,cex.lab=1.5, xlim=c(0,1.05*max(X)),ylim=c(0,1.05*max(Y)) ) Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : [EMAIL PROTECTED

[R] use of empty space in split graph device

2008-10-17 Thread Benoit Boulinguiez
(x) title(main=expression(3- residuals distribution)) abline(0,0,lwd=2,col=2) Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR CNRS 6226 Sciences Chimiques de Rennes Campus de Beaulieu, 263 Avenue du Général Leclerc 35700

Re: [R] use of empty space in split graph device

2008-10-20 Thread Benoit Boulinguiez
That's it. thanks Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : Greg Snow [mailto:[EMAIL PROTECTED] Envoyé : vendredi 17 octobre 2008 19:19 À : Benoit Boulinguiez; r-help@r-project.org Objet : RE: [R] use of empty space in split graph device The plot.new

Re: [R] How to get estimate of confidence interval?

2008-10-21 Thread Benoit Boulinguiez
Hi, I don't know the fitdistr function, you may have a look on the function confint(). I use it after nls() to get the confidence interval of the assessed parameters. Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la

[R] create list of data frames

2008-10-27 Thread Benoit Boulinguiez
frame I've tried this for (i in 1:1000) { foo-list(c(foo[],data.frame(Ce=DATA1.x[,i],Qe=DATA1.y[,i]))) } but the program craches when I want to see foo. Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR CNRS 6226

Re: [R] create list of data frames

2008-10-27 Thread Benoit Boulinguiez
a lot :) Regards/Cordialement Benoit Boulinguiez _ De : Kenn Konstabel [mailto:[EMAIL PROTECTED] Envoyé : lundi 27 octobre 2008 16:59 À : Benoit Boulinguiez Cc : r-help@r-project.org Objet : Re: [R] create list of data frames Hi, To realize the data frame I've tried

[R] continue a loop after an error with confint

2008-10-30 Thread Benoit Boulinguiez
the confidence interval is not estimated because of a singular gradient result. Then it stops the loop. Is that possible to continue the loop after an error returned by confint? Regards/Cordialement - Benoit Boulinguiez Ph.D Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR

[R] handle graph size in eps

2009-03-02 Thread Benoit Boulinguiez
Hi all, I've got a density graph made with the following commands: win.graph(width=13,height=6) par ( fin=c(13,3) ,mai=c(1,1,0.5,0.5) ,mfrow=c(1,2) ,cex.axis=1.5 ,cex.lab=1.5) dens-density(DATA1.y[2,]-mean(DATA1.y[2,]),kernel=gaussian) xlimit-range(dens$x) ylimit-range(dens$y) hist(

Re: [R] handle graph size in eps

2009-03-02 Thread Benoit Boulinguiez
? Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] Envoyé : lundi 2 mars 2009 11:25 À : Benoit Boulinguiez Cc : r-help@r-project.org Objet : Re: [R] handle graph size in eps On Mon, 2 Mar 2009, Benoit Boulinguiez wrote: Hi

Re: [R] ggplot2: geom_smooth and legend

2009-08-18 Thread Benoit Boulinguiez
) + labs(x=Temp~(degree*C),y=Weight~Derivative~(%/*degree*C)) + opts(panel.grid.minor = theme_line(colour = grey94)) print(desorb_plot) Cordialement / Regards --- Benoit Boulinguiez Ecole de Chimie de Rennes (ENSCR) Bureau 1.20 Equipe CIP UMR

Re: [R] ggplot2: geom_smooth and legend

2009-09-01 Thread Benoit Boulinguiez
~(%/*degree*C)) + opts(panel.grid.minor = theme_line(colour = grey94)) print(air_N2_desorb_plot) Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : hadley wickham [mailto:h.wick...@gmail.com] Envoyé : mercredi 26 août 2009 19:58 À : Benoit Boulinguiez Cc : r-help@r

Re: [R] ggplot2: geom_smooth and legend

2009-09-01 Thread Benoit Boulinguiez
=Weight~Derivative~(%/*degree*C)) + opts(panel.grid.minor = theme_line(colour = grey94)) print(air_N2_desorb_plot) Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] De la part de Benoit

[R] ggplot2: mixing colour and linetype in geom_line

2009-09-09 Thread Benoit Boulinguiez
1.94e-10 6.35e-12 8.82e-12 21 37.82417 4.55e-12 5.58e-11 3.76e-10 1.19e-11 1.94e-10 6.29e-12 8.86e-12 22 38.41400 4.57e-12 5.57e-11 3.75e-10 1.20e-11 1.92e-10 6.30e-12 8.80e-12 Regards/Cordialement - Benoit Boulinguiez Ph.D student Ecole de Chimie de Rennes (ENSCR) Bureau 1.20

Re: [R] ggplot2: mixing colour and linetype in geom_line

2009-09-10 Thread Benoit Boulinguiez
many thanks Felipe I didn't know the melt function. I'll have a close look at it. Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : Felipe Carrillo [mailto:mazatlanmex...@yahoo.com] Envoyé : mercredi 9 septembre 2009 20:40 À : r-help@r-project.org; Benoit

[R] grid lines aligned on each ticks with a log scale

2010-03-20 Thread Benoit Boulinguiez
, panel.first=grid()) how to get lines at x = 2 and 5 on the graph? Of course the option nx in grid() is not valid, as it does not align the grid lines with the ticks in a log scale... Thanks for giving a hand. Regards/Cordialement - Benoit Boulinguiez Ph.D student Ecole de Chimie de

Re: [R] grid lines aligned on each ticks with a log scale

2010-03-20 Thread Benoit Boulinguiez
Terrific! How could I've missed that. Well, I know, I didn't get it from the documentation... Thanks Regards/Cordialement Benoit Boulinguiez -Message d'origine- De : Duncan Murdoch [mailto:murd...@stats.uwo.ca] Envoyé : samedi 20 mars 2010 14:54 À : Benoit Boulinguiez Cc : r-help