R: [R] merging variable and character
Vito Muggeo
vito.muggeo at giustizia.it
Mon Nov 24 11:25:11 CET 2003
See ?paste
plot(x[,i], ylab=paste("series",i,sep=" "))
does what you want.
I think it should be a good idea to read (at least) some of several official
manuals, contributed doc, books on R.
best,
vito
----- Original Message -----
From: STOLIAROFF VINCENT <VINCENT.STOLIAROFF at sgam.com>
To: <r-help at stat.math.ethz.ch>
Sent: Monday, November 24, 2003 10:51 AM
Subject: [R] merging variable and character
Hi R lovers! I'd like to know the trick to get a plot with a title
associating variable and text
I'd like to plot something like
for (i in 1:10) plot(x[,i],ylab="Serie" & i)
to get Serie 1 Serie 2 so on and so forth... of course it doesn't work.
If somebody could give me an idea, it would be very nice
thank you very much and long life to R
Vincent
*************************************************************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration.
SG Asset Management et ses filiales declinent toute responsabilite au titre
de ce message s'il a ete altere, deforme ou falsifie.
Découvrez l'offre et les services de SG Asset Management sur le site
www.sgam.fr
********
This message and any attachments (the "message") are confide...{{dropped}}
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
More information about the R-help
mailing list