[R] puzzled with plotmath for matrix indices
Uwe Ligges
ligges at statistik.tu-dortmund.de
Thu Jan 20 14:11:16 CET 2011
On 20.01.2011 14:08, Claudia Beleites wrote:
> Gerrit,
>
> thanks & viele Grüße nach Oberhessen :-)
>
>>> plot (1, 1, ylab = expression (Z[list(i,i)]))
> though that cannot be evaluated, either (due to [ not knowing what to do
> with an index list)
Works for me with a recent R version.
> for future searches: probably the easiest cheat is, of course,
> plot (1, 1, ylab = expression (Z["i, i"]))
which is less convenient since you could not replace i by a dynamically
calculated number, for example.
Best,
Uwe Ligges
> Anyways, I put the "how to" into the R Wiki page on plotmath.
>
> And I suggest that it should be mentioned in the plotmath help => email
> to r-devel.
>
> Claudia
>
More information about the R-help
mailing list