Skip to content
Prev 86175 / 398503 Next

"main" parameter in plot.default vs plot.formula

On 2/9/06, Berton Gunter <gunter.berton at gene.com> wrote:
Regarding your note 2,  the key thing that seems to
be necessary is not really substitute vs. bquote but
just doing it twice.  In your example
above you did not replace bquote with substitute but did a
substitute and a bquote so now its two levels deep.  But if we
just did two bquotes or two substitutes that would be ok too.
For example, we can just apply bquote twice and then it works:

plot(y~x ,main = bquote(bquote(n[1] == .(a))))

The various calls must be stripping off one layer so that
you have to protect it twice so that the underlying code
does not get evaluated.