[R] RE : Help about exception handling in r-project.

2007-11-05 Thread GOUACHE David
?try ?tryCatch worked for me David Gouache Arvalis - Institut du Végétal Station de La Minière 78280 Guyancourt Tel: 01.30.12.96.22 / Port: 06.86.08.94.32 -Message d'origine- De : ANUSHA AIYALU KANNAN [mailto:[EMAIL PROTECTED] Envoyé : dimanche 4 novembre 2007 04:50 À : [EMAIL

[R] regular expressions

2008-03-12 Thread GOUACHE David
Hello all, Still fighting with regular expressions and such, I am again stuck: Suppose I have a vector of character chains. In this vector, I wish to identify which character chains start with a given pattern, and then replace everything that comes after said pattern. Here is a quick

[R] xyplot: tick marks inside panel

2008-06-26 Thread GOUACHE David
Hello all, Working with a typical xyplot figure (for example the first from example(lattice) ) I would like to place the tick marks inside the panels instead of outside. I believe working with the axis argument might be the way to do it, but do not see how? Could anyone help me out in doing

[R] bwplot with Date object

2008-07-31 Thread GOUACHE David
Hello R-helpers, I would like to produce a boxplot for dates, using lattice. Here is a dummy example : dates-as.Date(32768:32895,origin=1900-01-01) plouf-data.frame(days=dates,group=factor(rep(1:2,times=128/2))) bwplot(group~days,data=plouf) # doesn't work, whereas :

[R] vertical bpplot

2008-07-31 Thread GOUACHE David
Hello all, I have a question on bpplot (or more specifically panel.bpplot used with bwplot) from package Hmisc. I would like to produce a box-percentile plot but vertically. And I hqve not been able to use the horizontal argument... using one of the examples from ?panel.bpplot : bwplot(g

[R] strip names lattice graphics

2008-07-31 Thread GOUACHE David
R-helpers, I'm having difficulty with customizing strip names for a lattice graphic. Here is an example using the iris data set : xyplot(Sepal.Length+Sepal.Width~Petal.Length,groups=Species,data=iris) ## I'd like to change the 2 strip names to Length and Width for example, this is what

[R] RE : bwplot with Date object

2008-08-01 Thread GOUACHE David
in each panel... Which isn't what I obtain. How do I customize the location of the tick marks for each panel ? Thanks again. David De: Deepayan Sarkar [mailto:[EMAIL PROTECTED] Date: ven. 01/08/2008 00:12 À: GOUACHE David Cc: [EMAIL PROTECTED] Objet : Re: [R

[R] RE : bwplot with Date object

2008-08-01 Thread GOUACHE David
I ended up finding one solution to my 2nd question. Here it is : http://tolstoy.newcastle.edu.au/R/help/04/01/0649.html Sorry for the bother. David De: GOUACHE David Date: ven. 01/08/2008 15:50 À: Deepayan Sarkar Cc: [EMAIL PROTECTED] Objet : RE : [R

[R] quantiles for dates

2008-05-14 Thread GOUACHE David
Hello all, I was wondering if there is a package in which someone would have created a quantile function that handles vectors of class Date. In advance thanks. David Gouache ARVALIS - Institut du végétal Station de La Minière 78280 Guyancourt Tel: 01.30.12.96.22 / Port: 06.86.08.94.32

[R] lattice histogram for multiple variables : adjusting x axis

2009-05-12 Thread GOUACHE David
Hello all, I have a large data frame and I want to look at the distribution of each variable very quickly by plotting an individual histogram for each variable. I'd like to do so using lattice. Here is a small example using the iris data set:

[R] RE : multiple regressions on columns

2009-02-25 Thread GOUACHE David
dependent variable. Best regards, David Gouache ARVALIS - Institut du végétal Station de La Minière 78280 Guyancourt Tel: 01.30.12.96.22 / Port: 06.86.08.94.32 -Message d'origine- De : Greg Snow [mailto:greg.s...@imail.org] Envoyé : mardi 24 février 2009 18:22 À : GOUACHE David; r-h

[R] RE : RE : multiple regressions on columns

2009-02-25 Thread GOUACHE David
] Envoyé : mercredi 25 février 2009 10:09 À : GOUACHE David Cc : r-h...@stat.math.ethz.ch Objet : Odp: [R] RE : multiple regressions on columns Hi If you do not insist on matrix and use data frame instead lapply(iris4,function(x) lm(iris$Sepal.Length~x)) can do it Regards Petr r-help-boun...@r

[R] read multiplan or sylk files in R

2009-02-25 Thread GOUACHE David
Hello, This may sound crazy, but I have a large number of Multiplan data files I'm in the process of recuperating, and I'm hoping to avoid having to open them one by one to convert them into a modern, directly usable format. So I was wondering if someone somewhere had encountered this and

[R] passing arguments to subset from a function

2008-12-17 Thread GOUACHE David
Hello R-helpers, I'm writing a long function in which I manipulate a certain number of datasets. I want the arguments of said function to allow me to adapt the way I do this. Among other things, I want my function to have an argument which I will pass on to subset() somewhere inside my

[R] lattice : modifying strip names with 2 strips

2011-11-23 Thread GOUACHE David
Hello R-helpers, I'm looking for a way to rename strips in lattice plots when I have more than one conditionning variable. Here's a dummy example taken from http://casoilresource.lawr.ucdavis.edu/drupal/node/510 library(lattice) f - function(a, b, x) {p - (exp(a + b*x)) / (1 + exp(a + b*x))}

[R] lattice legen and auto.key conflict

2012-07-30 Thread GOUACHE David
Hello R-helpers, I'm trying to customize a graphic in lattice using the 'legend' argument to add labels on my plot but in the process I'm losing the legend drawn by 'auto.key', despite the fact that I'm actually not sticking these on the same sides of the graphic. I worked up a quick and

[R] intamap plot : specifying cutoffs

2011-03-09 Thread GOUACHE David
Hello all, A question for plotting of intamap results : Is it possible, and in so, how, to specify the cutoff points for changing colors of plots ? Using the example : data(meuse) meuse$value = log(meuse$zinc) data(meuse.grid) coordinates(meuse) = ~x+y coordinates(meuse.grid) = ~x+y object =