[R] superscript
Duncan Murdoch
murdoch.duncan at gmail.com
Tue May 4 13:44:14 CEST 2010
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
More information about the R-help
mailing list