Dear socrates;
It did not take me 2.5 hours but it did take longer than I thought it
would. I worked off the example given by Henrique Dallazuanna seen at:
http://finzi.psych.upenn.edu/R/Rhelp08/archive/120065.html
This seems "to work":
mtext(bquote(100~"%" ~ Area == ~ .(text.val)~ Km^2), s
roject.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of socrates
> Sent: Wednesday, March 11, 2009 8:08 AM
> To: r-help@r-project.org
> Subject: [R] Combining math and variables in expression
>
>
> I am trying to get the following line in a plot margin using mtext:
>
>
I am trying to get the following line in a plot margin using mtext:
100% Area = 120.000 km^2
Where I intend that "100% Area =" is text, 120.000 is a number that varies
according to different data, and km^2 should be a neat
km-with-superscript-2.
The expression function fails me, since it appare
3 matches
Mail list logo