Re: [R] apply pairs function to multiple columns in a data frame

2012-02-10 Thread 538280
You might find the pairs2 function in the TeachingDemos package useful. On Fri, Feb 10, 2012 at 1:13 PM, jarvisma wrote: > I am very new to R and programming and thank you in advance for your patience > and help with a complete novice! > > I am working with a large multivariate data set that has

Re: [R] apply pairs function to multiple columns in a data frame

2012-02-10 Thread Phil Spector
A good way to solve problems like this is to write a function that will work with one variable, and then use one of the apply family of functions (in this case sapply) to do it for each of your variables. In this case, such a function would be something like this: make1plot = function(var){