puzzled with plotmath for matrix indices
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