[R] Substitute in legend

Thomas Lumley tlumley at u.washington.edu
Sat Aug 23 00:18:55 CEST 2003


On Fri, 22 Aug 2003, Deepayan Sarkar wrote:
>
> Just out of curiosity: ?legend says
>
>   legend: a vector of text values or an 'expression' of length >= 1 to
>           appear in the legend.
>
> Is an object of mode "call" either ? (is.expression() returns FALSE.) Are they
> expected to work wherever expressions are supposed to work ?
>

They aren't expressions, but they do work in many places where expressions
work, in particular in plotmath.  This is good, because quote() is shorter
than expression().

	-thomas




More information about the R-help mailing list