[R] exrpression(), double subscript
Afshartous, David
DAfshartous at med.miami.edu
Sat May 24 18:14:48 CEST 2008
thanks Uwe, I wanted the first thing you mentioned so that solves it.
-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.tu-dortmund.de]
Sent: Sat 5/24/2008 10:42 AM
To: Afshartous, David
Cc: r-help at r-project.org
Subject: Re: [R] exrpression(), double subscript
Afshartous, David wrote:
> All,
>
> The first use of expression produces a double subscript while the second does not.
> I searched in ?plotmath and the archives and didn't find anything. I'm sure I'm missing
> something obvious but can't seem to find. any suggestions much appreciated.
>
> Cheers,
> David
>
>
> plot(1:10, 1:10)
> text(par("usr")[1] - .5, 5, adj = 1, labels = expression(hat(b)[11]), xpd = TRUE)
> text(par("usr")[1] - .5, 5, adj = 1, labels = expression(hat(b)[0*i]), xpd = TRUE)
If you want "0i" as subscript, use
expression(hat(b)[0*i])
(0i is complex and represented by 0+0i afterwards)
Or does "double" mean you want i as subscript of 0? Then just try
expression(hat(b)[0[i]])
Uwe Ligges
>
> ------------------------------------------------------------------------
>
> ______________________________________________
> 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