Displaying 17 results from an estimated 17 matches for "arvalisinstitutduveget".
Did you mean:
arvalisinstitutduvegetal
2009 Feb 25
1
read multiplan or sylk files in R
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 had a way to read Multiplan files in R, or, at least, a way to read SYLK files directly in R.
2008 Dec 17
4
passing arguments to subset from a function
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 function. Here is a quick and simplified example with the iris dataset.
myfunction<-function(table,
2006 Aug 16
2
adding multiple fitted curves to xyplot graph
Hello RHelpers,
This may already have been answered, but despite days of scouring through the archives I haven't found it.
My goal is to add multiple fitted curves to a plot.
An example data set (a data frame named df in following code) is:
x1 y1 factor1
4 1298.25 0.00000000 1
5 1393.25 0.00000000 1
6 1471.50
2007 Aug 04
2
multiple nls - next fit even after convergence problem
Hello R-gurus,
I'm trying to adjust different growth curves to a rather extensive dataset.
I wrote up a function to go through all of them, but am encountering a problem :
among the more than 1000 curves I have, obviously for some of them I encounter conversion problems.
I'd like for my function to keep going to the next curve and store the fact that for curve number X I had a convergence
2008 Jun 26
1
xyplot: tick marks inside panel
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?
In advance thank you.
David Gouache
ARVALIS - Institut du v?g?tal
Station de La Mini?re
78280
2008 Jul 31
1
bwplot with Date object
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.numeric(days),data=plouf)
# does, but is obviously not good looking when it comes to
2008 Jul 31
1
strip names lattice graphics
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 I've tried :
2007 Jul 30
8
regular expressions : extracting numbers
Hello all,
I have a vector of character strings, in which I have letters, numbers, and symbols. What I wish to do is obtain a vector of the same length with just the numbers.
A quick example -
extract of the original vector :
"lema, rb 2%" "rb 2%" "rb 3%" "rb 4%" "rb 3%" "rb 2%,mineuse" "rb" "rb" "rb 12"
2012 Jul 30
1
lattice legen and auto.key conflict
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 example with the iris data :
### here's the basic graph
2007 May 03
1
reshape question
Hello all,
A quick question concerning a behavior of reshape I fail tu understand, probably something obvious but I just can't see it.
With the following data frame further referred to as tab :
2007 Apr 27
1
add arrows to barchart with groups
Hello Rhelpers,
I am trying to represent the following data (hereafter named donnees) in a barchart with a grouping variable :
site traitement date s res
1 NT 17/10/2005 normal 76.2
1 T 17/10/2005 normal 103.2
1 NT 23/11/2005 tardif 81.6
1 T 23/11/2005 tardif 98
2 NT 15/10/2005 normal 72.71
2 T 15/10/2005 normal 94.47
2 NT 15/11/2005 tardif 79.65
2 T 15/11/2005 tardif 94.7
2006 Nov 02
1
avoiding a loop: "cumsum-like"
Hello Rhelpers,
I need to run the following loop over a large number of data-sets, and was wondering if it could somehow be vectorized. It's more or less a cumulative sum, but slightly more complex.
Here's the code, and an example dataset (called tab in my code) follows.
Thanks in advance for any suggestions!
res<-0
for (i in min(tab$Date):max(tab$Date))
{
if
2007 Oct 02
1
splom pairs and groups argument
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)
{
usr <- par("usr"); on.exit(par(usr))
par(usr = c(0, 1, 0, 1))
2007 Sep 06
1
labelling specific points xyplot
Hello R-helpers,
I'm trying to add labels to points in xyplot graphs, but I want lo label only those points which have a certain level of my grouping variable, and have encountered a few problems.
An example dataframe that goes with the following code is at the end of this message.
1st step, adding labels (from another column in the dataframe) to my chosen points :
I've figures this
2011 Mar 09
0
intamap plot : specifying cutoffs
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 = interpolate(meuse,meuse.grid,outputWhat = list(mean = TRUE, variance = TRUE, excprob = 7, excprob = 8,
2011 Nov 23
0
lattice : modifying strip names with 2 strips
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))}
x.seq <- seq(-5, 5, by=0.5)
x <- rep(x.seq, 9)
a.seq <- c(-2, 0, 2)
b.seq
2009 May 12
1
lattice histogram for multiple variables : adjusting x axis
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[,!sapply(iris,is.factor)]),collapse="+"))),data=iris[,!sapply(iris,is.factor)])