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
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
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
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
4 matches
Mail list logo