[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 simple

[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] 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 = in

[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: histogram(as.formula(paste("~",paste(colnames(iris[,

[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 maybe

[R] RE : RE : multiple regressions on columns

2009-02-25 Thread GOUACHE David
recheza.cz] 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

[R] RE : multiple regressions on columns

2009-02-25 Thread GOUACHE David
s one 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

[R] multiple regressions on columns

2009-02-24 Thread GOUACHE David
R-helpers, A quick question regarding my wanting to run multiple regressions without writing a loop. Looking at a previous discussion : http://tolstoy.newcastle.edu.au/R/e2/help/07/02/9740.html my objective is to do the "opposite", i.e. instead of having the same independent variable and testi

[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 functio

[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] RE : bwplot with Date object

2008-08-01 Thread GOUACHE David
st(at=mean(x),relation="free"))) I would have liked one tick at the mean of the x values 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

[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] 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] 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 : bwplot(group~as.num

[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 this

[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] 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 exampl

[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 PROTECTE

[R] splom pairs and groups argument

2007-10-02 Thread GOUACHE David
Hello, I'm trying to pull off a certain graph using splom, and can't quite get my panel functions right. Basically, the equivalent using pairs would be something like this (using iris data set as an example): panel.corval <- function(x, y, digits=2, prefix="", cex.cor,col,pch) { u

[R] RE : Must be easy, but haven't found the function (numerical integration)

2007-09-18 Thread GOUACHE David
try : library(Bolsatd) ?sintegral or: library(caTools) ?trapz 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 : Ptit_Bleu [mailto:[EMAIL PROTECTED] Envoyé : lundi 17 septembre 2007 12