Re: [R] Plot overview xy plots from data frame?

2009-10-15 Thread Jim Lemon

On 10/15/2009 07:40 AM, Joel Fürstenberg-Hägg wrote:

Hi,

I've got a data frame (556 rows and 36 columns) from which I need to create 
several xy plots and print to pdf, in order to detect outliers and trends in 
the data. 16 of the columns contains numerical values, and I would like to 
create graphs for all combinations. It can be done manually, but creating 256 
plots by hand takes time... I guess I have to iterate through the data frame, 
but I'm not used to do that with R. Below I've written my thoughts, trying to 
combine my knowledge in Java and R, just to give you the idea:

pdf("FieldTrial0809Overview.pdf")

int colWidth = fieldTrial[0].length;


for(i=0, i   

Hi Joel,
If by "all combinations" you mean all pairwise combinations, then if 
your numeric columns are numbers 5 to 20, you could do this:


allpairs<-combn(5:20,2)
for(i in 1:dim(allpairs)[2]) {
 pdf(
  paste("FieldTrial0809Overview",
  allpairs[1,i],allpairs[2,i],sep="_"))
 plot(fieldTrial[,allpairs[1,i]],fieldTrial[,allpairs[2,i]],...)
 dev.off()
}

Jim

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Plot overview xy plots from data frame?

2009-10-14 Thread Joel Fürstenberg-Hägg

Hi,

I've got a data frame (556 rows and 36 columns) from which I need to create 
several xy plots and print to pdf, in order to detect outliers and trends in 
the data. 16 of the columns contains numerical values, and I would like to 
create graphs for all combinations. It can be done manually, but creating 256 
plots by hand takes time... I guess I have to iterate through the data frame, 
but I'm not used to do that with R. Below I've written my thoughts, trying to 
combine my knowledge in Java and R, just to give you the idea: 

pdf("FieldTrial0809Overview.pdf")

int colWidth = fieldTrial[0].length;


for(i=0, ihttp://dejting.se.msn.com/channel/index.aspx?trackingid=1002952
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.