[R] merging variable and character

Ivar Herfindal Ivar.Herfindal at bio.ntnu.no
Mon Nov 24 11:18:07 CET 2003


Hello

Try ?paste

plot(x[,i],ylab=paste("Serie", i))

Ivar Herfindal

On Mon, 24 Nov 2003 10:51:11 +0100, STOLIAROFF VINCENT 
<VINCENT.STOLIAROFF at sgam.com> wrote:

> 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