[R] Expression in legend of plot
Rui Barradas
ruipbarradas at sapo.pt
Thu Oct 25 13:32:27 CEST 2012
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.
More information about the R-help
mailing list