Skip to content
Back to formatted view

Raw Message

Message-ID: <5089234B.4090808@sapo.pt>
Date: 2012-10-25T11:32:27Z
From: Rui Barradas
Subject: Expression in legend of plot
In-Reply-To: <1351164086081-4647393.post@n4.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:
> 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.
>
> ______________________________________________
> R-help at 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.