[R] main= bquote(paste("Results for ", beta, "3", ==.(b1)))) doesn't work.

Gabor Grothendieck ggrothendieck at gmail.com
Sun Jul 30 23:25:10 CEST 2006


I assume the 3 is supposed to be a subscript.  Try this:

  b1 <- x <- y <- 1
  plot(x,y, main = bquote("Results for " ~ beta[3] ==.(b1)))

On 7/30/06, Marco Boks <marco.boks at inter.nl.net> wrote:
> Hi,
>
> I need to plot the beta as the symbol, followed by the index 3 as the title of a graph.
>
> This code works> main= bquote(paste("Results for ", beta ==.(b1))
>
> but I also need the index 3.
> I tried (simplified):
>
> >plot(x,y, main= bquote(paste("Results for ", beta, "3", ==.(b1))))
>
> and a few other versions, but I can not get it to run properly.
>
> Any help would be greatly appreciated,
>
> Thanks
>
> Marco
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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