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.
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. > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
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
thanks a lot! ----- ------------------------ Kay Cichini Postgraduate student Institute of Botany Univ. of Innsbruck ------------------------ -- View this message in context: http://r.789695.n4.nabble.com/superscript-tp2125341p2125384.html Sent from the R help mailing list archive at Nabble.com.
thanks a lot! ----- ------------------------ Kay Cichini Postgraduate student Institute of Botany Univ. of Innsbruck ------------------------ -- View this message in context: http://r.789695.n4.nabble.com/superscript-tp2125341p2125386.html Sent from the R help mailing list archive at Nabble.com.