[R] text() with text, variables and math HOWTO?

Johannes Graumann graumann at its.caltech.edu
Fri Aug 27 17:49:49 CEST 2004


Thanks everybody!

Joh

On Fri, 27 Aug 2004 09:37:12 +0200
Uwe Ligges <ligges at statistik.uni-dortmund.de> wrote:

> Johannes Graumann wrote:
> 
> > Hello,
> > 
> > One more question from the 'abusing R for blotting - particularly
> > anally' department:
> > How can I in the expression below make the '%~~%' show up as the
> > aprrox-sign I want it to be?
> > 
> > Thanks for any hint,
> > 
> > Joh
> > 
> > text(
> > 	500,1.5,
> > 	cex=0.75,
> > 	substitute(
> > 		paste(
> > 			OD[600][~nm],
> > 			" of 1 at ",
> > 			time1,
> > 			" min ",
> > 			"%~~%",
> > 			time1h,
> > 			"h"
> > 		),
> > 		list(
> > 			time1=round(time1,digits=0),
> > 			time1h=round(time1/60,digits=1)
> > 		)
> > 	)
> > )
> 
> 
>    substitute(OD[600][~nm] * " of 1 at " *
>      time1 * " min" %~~% time1h * h,
>        list(time1=round(time1,digits=0),
>             time1h=round(time1/60,digits=1))
>    )
> 
> 
> 
> Uwe Ligges
> 
> 
> 
> > ______________________________________________
> > R-help at 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
> 
> ______________________________________________
> R-help at 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




More information about the R-help mailing list