Try this,

marco2 = matrix(rnorm(4), nrow=2, ncol=2)
marco3 = 2.12
i =1

plot.new()
mtext(bquote(R^2*.(round(marco2[1,i],digits=3))*" N° of
proteins:"*.(marco3[i])),side=4,cex=.6)


HTH,

baptiste

2009/9/16 Marco Chiapello <marpe...@gmail.com>

> /Dear all,///
> /I am very thankful, if you could tell what is the right way to write:
>
> mtext(paste(expression("R"^2),round(marco2[1,i],digits=3),"   N° of
> proteins:",marco3[i]),side=4,cex=.6)
>
> in this case the output is:
>
> "R"^2
>
> I tried also in this way:
>
> mtext(paste(expression(paste("R"^2)),round(marco2[1,i],digits=3),"   N° of
> proteins:",marco3[i]),side=4,cex=.6)
>
> the output is:
>
> paste("R"^2)
>
> Thank you in advance
> Marco
> /
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
_____________________________

Baptiste Auguié

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

http://newton.ex.ac.uk/research/emag
______________________________

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to