Re: [R] concatenating expressions and standard text

From: Petr Pikal <petr.pikal_at_precheza.cz>
Date: Fri 16 Dec 2005 - 17:41:55 EST

Hi

On 16 Dec 2005 at 12:34, Paul Murrell wrote:

Date sent:      	Fri, 16 Dec 2005 12:34:04 +1300
From:           	Paul Murrell <p.murrell@auckland.ac.nz>
To:             	"manuel.martin" <manuel.martin@orleans.inra.fr>
Copies to:      	r-help@stat.math.ethz.ch
Subject:        	Re: [R] concatenating expressions and standard text

> Hi
>
>
> manuel.martin wrote:
> > Hi all,
> >
> > is it possible to concatenate expressions and basic text when for
> > instance labeling axis of a plot? I would like to see something like
> > the concatenation of expression(C[0]) and "for case 1" on my x axis.
> > Obviously a plot(x, y, xlab=paste(expression(C[0])," in case1"))
> > will not work.
>
>
> Is this what you mean ... ?
>
> plot(1, expression(paste(C[0], " in case 1")))

probably
plot(1, xlab = expression(paste(C[0], " in case 1")))

Cheers
Petr

> Paul
> --
> Dr Paul Murrell
> Department of Statistics
> The University of Auckland
> Private Bag 92019
> Auckland
> New Zealand
> 64 9 3737599 x85392
> paul@stat.auckland.ac.nz
> http://www.stat.auckland.ac.nz/~paul/
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html

Petr Pikal
petr.pikal@precheza.cz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Dec 16 17:51:04 2005

This archive was generated by hypermail 2.1.8 : Fri 16 Dec 2005 - 20:32:42 EST