[R] Expression in legend of plot

Bert Gunter gunter.berton at gene.com
Thu Oct 25 14:04:37 CEST 2012


... 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




More information about the R-help mailing list