Re: [R] combining grid.text, expression and variables

2009-09-02 Thread baptiste auguie
Good point, I failed to spot this kink. You might be interested in a recent discussion on r-help and r-devel, http://markmail.org/message/4hvdmwqjyqwprbwf Best, baptiste 2009/9/2 Sebastien Bihorel > Hi Baptiste, > > Thank for the help. One thing though that I found while transposing your > s

Re: [R] combining grid.text, expression and variables

2009-09-02 Thread Sebastien Bihorel
Hi Baptiste, Thank for the help. One thing though that I found while transposing your syntax to my problem: lab must be of class expression for your syntax to work. For instance, if one replaces the second elements of the lab variables by a simple integer, lab is not more of class expression,

Re: [R] combining grid.text, expression and variables

2009-09-02 Thread baptiste auguie
Hi, Try this, library(grid) value <- c(0.1) lab <- c("test", expression(bquote(paste(.(value[1]*100), " and percentiles1", sep=""))), bquote(expression(.(value[1]*100)*" and percentiles2")), bquote(paste(.(value[1]*100), " and percentiles3", sep="")) ) grid.newpage