Skip to content

zoo plot without box?

4 messages · Matthieu Stigler, Gabor Grothendieck, Pierre Lapointe

#
Hi

I'm trying to create a zoo plot without the box surrounding it. If it 
was a simple data, I woudl do:
plot(1:100, bty="n")

but with zoo, the argument bty does not seem to work?
library(zoo)
plot(zoo(1:100), bty="n")

I thought nervertheless that par arguments are allowed in plot.zoo... 
Any idea about a workaround?

Thanks!!

Matthieu
#
On Mon, Jan 24, 2011 at 11:51 AM, Matthieu Stigler
<matthieu.stigler at gmail.com> wrote:
That's a bug. Try the development version.

library(zoo)
source("http://r-forge.r-project.org/scm/viewvc.php/*checkout*/pkg/zoo/R/plot.zoo.R?revision=822&root=zoo")
plot(zoo(1:100), bty = "n")
#
Or you could change you par(),

library(zoo)
opar <-par() #put original settings in memory
par(bty="n")
plot(zoo(1:100))
par(opar) #go back to original par



On Mon, Jan 24, 2011 at 12:15 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
#
Hello

Thanks Gabor for the info about newer version, and thanks Pierre for the 
workaround!!

matthieu

Le 24. 01. 11 18:22, Pierre Lapointe a ?crit :