Skip to content
Prev 69977 / 398506 Next

R-help,

I do not fully understand your example but if you need to act on the
columns of a dataframe why don't you just call its columns the title you
want. something like
X<-matrix(rnorm(1000), ncol=4)
colnames(X)<-c("foo", "foo1", "foo2", "foo3")
X<-as.data.frame(X)
par(mfrow=c(2,2))
lapply(colnames(X), function(x) plot(X[,x], ylab="y", xlab="x", main=x))


HTH

Jean
On Thu, 19 May 2005, Luis Ridao Cruz wrote: