Skip to content

Expression in legend of plot

4 messages · Rui Barradas, stat.kk, Bert Gunter

#
I would like to have an expression f^(-1)(x) in a legend of plot. For this I
used expression(f^{-1}(x)), but  variable is always in exponent. How could I
change it in order to (x) be in a line, not in exponent?
Thank you for your responses!



--
View this message in context: http://r.789695.n4.nabble.com/Expression-in-legend-of-plot-tp4647393.html
Sent from the R help mailing list archive at Nabble.com.
#
Hello,

Use an asterisk to put a space between the exponent an (x).

plot(1, main =  expression(f^{-1}*(x)))

Hope this helps,

Rui Barradas
Em 25-10-2012 12:21, stat.kk escreveu:
#
... and note that the "{" ,"}" are unnecessary:
-- Bert
On Thu, Oct 25, 2012 at 4:32 AM, Rui Barradas <ruipbarradas at sapo.pt> wrote: