search for: dmackay9

Displaying 7 results from an estimated 7 matches for "dmackay9".

2006 Dec 04
2
background color in strip.custom()
Hi all, how can I change the background color in lattice strips according to a factor level, eg: library(lattice) x <- rnorm(100) y <- sqrt(x) f <- gl(2, 50, c("A", "B")) xyplot(y ~ x | f) I like to change the background color of the strips according to the levels in f and tried several things like this with no success: xyplot(y ~ x | f,
2008 Mar 21
1
sample codes for writting a function with unknown number of arguments
Hi, I need to scan some files, and then do a boxplot graph of them. I also save the output from the boxplot function, so I can process the data later. For example, I need to scan 2 (it can be x, 0<x) files here. A<-scan(F1)/100; B<-scan(F2)/100; Now let's try graph it. N1 is the label for F1, and so on. bitmap(file=Name, type="png16m")
2007 Oct 12
2
accessing ylim set by xyplot
Hello, I would like to know if there is a clever way to avoid the problem illustrated below within the xyplot function. x <- seq(1:10) y <- seq(1:10) pr1 <- xyplot(x ~ y) u <- seq(1:12) v <- seq(1:12) pr2 <- xyplot(u ~ v, col = "red", more = FALSE) prts <- list(pr1, pr2) for(i in prts) print(i, more = TRUE) I realize that one possibility is to
2008 May 25
3
naming components of a list
Hi I have a character vector with thousands of names which looks like this: > V=c("Fred", "Mary", "SAM") > V [1] "Fred" "Mary" "SAM" > class(V) [1] "character" I would like to change it to a list: > L=as.list(V) > L [[1]] [1] "Fred" [[2]] [1] "Mary" [[3]] [1] "SAM" but I need to
2007 Aug 28
3
data formatting: from rows to columns
Hi All, I have some data I need to write as a file from R to use in a different program. My data comes as a numeric matrix of n rows and 2 colums, I need to transform each row as a two rows 1 col output, and separate the output of each row with a blanck line. Foe instance I need to go from this: V2 V3 27 2032567 19 28 2035482 19 126 2472826 19 132 2473320 19 136 2035480 135
2006 Nov 29
3
R2.4 xyplot + panel.number problem
Hi all; I'm trying to display a 2 panel plot for the Puromycin data from R with 2 different non-linear models fitted to each group. The problem is that as far as I know panel.number doesn't work in the latest version of R. Can anyone give a hint how to solve this? Here is the code that I used before and now doesn't work xyplot(rate ~conc| state,Puromycin,
2007 Sep 13
6
help with unit indication when plotting
Dear all: Is there any one could tell me how I can represent Micro-molar as an unit of concentration when I plot with R(S-plus), I don't want write 'uM' from keyboard, I am thinking to write it like in word, in word, people insert symbol for 'u' for uM. Am I clear? Thank you very much for your consideration and help. Lu