similar to: lattice histogram for multiple variables : adjusting x axis

Displaying 20 results from an estimated 4000 matches similar to: "lattice histogram for multiple variables : adjusting x axis"

2009 Feb 25
0
RE : multiple regressions on columns
Hi David: If your variables are in a dataframe called DF and the dependent variable is in the first column , you can do below but you probably are well aware of this anyway. lmresults<-lapply(names(DF[,-1],function(.name) { lm(DF[,1] ~ DF[,.name], data=DF) }) This will run through each of the variables in the dataframe and regress the first column on each variable individually. On
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 :
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 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
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 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 :
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
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"
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
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 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
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
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,
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
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,
2006 Nov 02
2
Individual Based Model and/or Cellular automata
Um texto embutido e sem conjunto de caracteres especificado associado... Nome: n?o dispon?vel Url: https://stat.ethz.ch/pipermail/r-help/attachments/20061101/4218da11/attachment.pl
2007 Nov 04
2
Help about exception handling in r-project.
Respected Sir, I am working on something in R. I am getting the following error. Warning messages:1: the standard deviation is zero in: cor(x, y, na.method, method == "kendall") I like to handle this error. I like to know how to do error handling in R. I want to write the WARNING MESSAGES to a text file and exit R. Please help me with a solution. My mailid is
2007 Sep 17
4
Must be easy, but haven't found the function (numerical integration)
Hi, I have a data frame of 2 columns with the following types : data$day char data$value num And I plot my data with : plot(strptime(donnees$day,format="%Y-%m-%d %H:%M:%S"),donnees$value, type="l") And I'd just like to get the numerical value of the integration of this graph. I looked at ?integrate but, as far as I understood (that is, not very much, due to my poor
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
2005 Jul 07
1
Tables: Invitation to make a collective package
Hi All, I would like to make an invitation to make a collective package with all functions related to TABLES. I know that there are many packages with these functions, the original idea is collect all this functions and to make a single package, because is arduous for the user know all this functions broadcast in many packages. So, I think that the original packages can continue with its