On Sun, Dec 28, 2008 at 3:06 PM, Rosa Trancoso <ar...@ist.utl.pt> wrote:
> Hello,
>
> I have a zoo object that I would like to plot with lattice, because I need
> the legend outside the plots. However, I don't want to use the strips,
> because these figures are for publication.
>
> I noticed that if I choose strip=FALSE but add the ylab argument, the
> xyplot.zoo functions plots all the strips.
>
>  set.seed(1)
>  z <- zoo(cbind(a = 1:5, b = 11:15, c = 21:25) + rnorm(5))
>
>  xyplot(z, xlab="days", strip=FALSE, ylab=colnames(z))
>
> How can I plot ylabels without the strips on top and on the left?


Perhaps you could use plot.zoo instead of xyplot.zoo like this:

plot(z, xlab="days", ylab=colnames(z))

See ?plot.zoo. There are more examples in the three vignettes.

>
> How can I see the code of xyplot.zoo?

zoo:::xyplot.zoo

>
> best regards
>
> Rosa
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

______________________________________________
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