superscript

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

superscript

Kay Cichini
hello,

i need to add legend text: "4th-root transformation", with the "th" superscripted -
tried much - but nothing worked..

thanks for any hints,
kay
Reply | Threaded
Open this post in threaded view
|

Re: superscript

Jorge I Velez
Hi Kay,

Try

> plot(1:10)
> legend('topleft', expression(4^th*"-root transformation"))

HTH,
Jorge


On Tue, May 4, 2010 at 7:33 AM, Kay Cichini <> wrote:

>
> hello,
>
> i need to add legend text: "4th-root transformation", with the "th"
> superscripted -
> tried much - but nothing worked..
>
> thanks for any hints,
> kay
>
> -----
> ------------------------
> Kay Cichini
> Postgraduate student
> Institute of Botany
> Univ. of Innsbruck
> ------------------------
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/superscript-tp2125341p2125341.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] 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.
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|

Re: superscript

Duncan Murdoch-2
In reply to this post by Kay Cichini
Kay Cichini wrote:
> hello,
>
> i need to add legend text: "4th-root transformation", with the "th"
> superscripted -
> tried much - but nothing worked..
>  
This puts it in the title for the plot:

plot(1, main=expression(paste("4"^"th"," root transformation")))

This puts it in a legend:

legend("topleft", pch=1, expression(paste("4"^"th"," root transformation")))


Duncan Murdoch

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|

Re: superscript

Kay Cichini
thanks a lot!
Reply | Threaded
Open this post in threaded view
|

Re: superscript

Kay Cichini
In reply to this post by Jorge I Velez
thanks a lot!