Hi all,

I hadn't used bquote before, so I gave this a try, only to encounter some odd
behavior.

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
<ggrothendi...@gmail.com> wrote:
> Try:
>
> aa <- 22
> plot(1, main = bquote(a == .(aa)))
>

R --vanilla

aa <- 22
x11()
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 - ???
dev.off()

# after trying bquote(), no plots have titles until I close
# the device and open a new one.

x11()
plot(1, main="abc") # plot with title
dev.off()

The png device does not have a plot with a title. postscript() works as
expected.

What am I missing?

Thanks,
Sarah
-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to