[R] Plotmath with values?
sarah.goslee at gmail.com
Wed Dec 31 21:51:16 CET 2008
Sorry, apparently I can't type. Gabor's example and my test case
should be identical, and weren't in my original email (now fixed).
On Wed, Dec 31, 2008 at 1:42 PM, Sarah Goslee <sarah.goslee at gmail.com> wrote:
> Hi all,
> I hadn't used bquote before, so I gave this a try, only to encounter some odd
> R 2.8.0 on Fedora Core 8 (no RPM for 2.8.1 yet)
> "vanilla" session with no packages loaded (same behavior with my usual
> set of packages).
> On Wed, Dec 31, 2008 at 12:30 PM, Gabor Grothendieck
> <ggrothendieck at gmail.com> wrote:
>> aa <- 22
>> plot(1, main = bquote(a == .(aa)))
> R --vanilla
> aa <- 22
> plot(1, main=paste("a == ", aa)) # plot with title
> plot(1, main = bquote(a == .(aa))) # plot _without_ title
> plot(1, main=paste("a == ", aa)) # plot _without_ title - ???
> plot(1, main="abc") # plot _without_ title - ???
> # after trying bquote(), no plots have titles until I close
> # the device and open a new one.
> plot(1, main="abc") # plot with title
> The png device does not have a plot with a title. postscript() works as
> What am I missing?
More information about the R-help