[R] Plotmath with values?
sarah.goslee at gmail.com
Wed Dec 31 19:42:42 CET 2008
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)))
aa <- 22
plot(1, main=paste("a == ", aa)) # plot with title
plot(, 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