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.
Expression in legend of plot
4 messages · Rui Barradas, stat.kk, Bert Gunter
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.
So easy solution..., thank you very much :) -- View this message in context: http://r.789695.n4.nabble.com/Expression-in-legend-of-plot-tp4647393p4647397.html Sent from the R help mailing list archive at Nabble.com.
... and note that the "{" ,"}" are unnecessary:
plot(1, main = bquote(f^-1*(x)))
-- Bert
On Thu, Oct 25, 2012 at 4:32 AM, Rui Barradas <ruipbarradas at sapo.pt> wrote:
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.
______________________________________________ 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.
Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm