[R] expression

Bert Gunter gunter.berton at gene.com
Mon Apr 1 21:59:54 CEST 2013


?plotmath

tells you how.

-- Bert

On Mon, Apr 1, 2013 at 12:46 PM, Jose Narillos de Santos
<narillosdesantos at gmail.com> wrote:
> Hi all,
>
> I惴 using
>
>
> titt<- expression(paste("R con ventanas de 200 ", italic(datos)))
>
> And it works properly on a plot(...,main=titt,..)
>
> But if I want to add an improvement to avoid typing n on the plot so that
>
> n<-200
>
> titt<- expression(paste("R con ventanas de ",n,  italic(datos)))
>
> It doesn愒 recognize that n is a "variable" and adds "n" letter instead of
> 200 on the plot when run:
>
> plot(...,main=titt,..)
>
> How can I include n in the plot authomatically without loosing the italic
> letter?
>
>         [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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