Re: [R] Graph Titles

2012-01-28 Thread chuck.01
Hard to help without a short example dataset (please read posting guide!) posted with dput(). You likely want to "paste" together a title for your graph. see ?paste Rambler1 wrote > > Another simple question that is driving me crazy: > I have a for loop that loops through a matrix and pulls d

Re: [R] Graph titles from massive

2010-01-07 Thread David Winsemius
On Jan 7, 2010, at 11:24 AM, Trafim Vanishek wrote: Dear all, I would like to ask you if there is a possibility in R to give the names to graphs which are not const. For example, How to name each plot, or to add notes like a=x[i], b=y[i] in this cycle x<-c(1,2,3,4,5,6) y<-c(7,8,9,10,11

Re: [R] Graph titles from massive

2010-01-07 Thread jim holtman
use the 'main' parameter: for (i in 1:6){ plot(x,y,main=paste("Plot:", i)) } On Thu, Jan 7, 2010 at 11:24 AM, Trafim Vanishek wrote: > Dear all, > > I would like to ask you if there is a possibility in R to give the names to > graphs which are not const. > For example, > > How to name each p

[R] Graph titles from massive

2010-01-07 Thread Trafim Vanishek
Dear all, I would like to ask you if there is a possibility in R to give the names to graphs which are not const. For example, How to name each plot, or to add notes like a=x[i], b=y[i] in this cycle x<-c(1,2,3,4,5,6) y<-c(7,8,9,10,11,12) par(mfrow=c(2,3)) for (i in 1:6){ plot(x,y) } Thank y