Skip to content
Back to formatted view

Raw Message

Message-ID: <CAGxFJbQnyAjwWf=26Wro0Vz=V=oUN8osJZG946bxDbvZCzvXXg@mail.gmail.com>
Date: 2017-01-19T00:59:25Z
From: Bert Gunter
Subject: Superscript in graph text
In-Reply-To: <SY3PR01MB20749CB185EC08C3860C326BA97E0@SY3PR01MB2074.ausprd01.prod.outlook.com>

?plotmath

Yes, you will have to put in some effort if you want to use these
sorts of latex-like math expressions as labels in your graphs.

Cheers,
Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Wed, Jan 18, 2017 at 4:44 PM, Jake William Andrae
<jake.andrae at adelaide.edu.au> wrote:
> Hello,
>
>
> I've added some statistical information as text to some graphs, but I'm having a really hard time making the 2 in the R2 label superscript. Does anyone have any suggestions?
>
>
> mtext(paste("R2 = ", R2), adj=0, line=1, col="black", cex=0.7)
>
>
> Kind regards
>
>
> Jake Andrae
> PhD Candidate
> Geology & Geophysics - Sprigg Geobiology Centre
> Department of Earth Science
> School of Physical Sciences
> The University of Adelaide, AUSTRALIA 5005
> Phone: 0407701565
> Email: jake.andrae at adelaide.edu.au
>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.