[R] plot.ts versus plot.zoo
Achim Zeileis
Achim.Zeileis at uibk.ac.at
Sat Sep 25 14:37:37 CEST 2010
On Wed, 22 Sep 2010, Alex van der Spek wrote:
> plot.ts has an argument yax.flip, plot.zoo does not.
Thanks for the info. I've just added an yax.flip argument to plot.zoo in
the devel version of "zoo" on R-Forge.
hth,
Z
> Is there a way to make the yaxis flip in plot.zoo?
>
> I tried using a custom panel function:
>
> panel.yaxis<-function(...) {
> npnl<-parent.frame$panel.number
> if (npnl %% 2 == 0) {
> axis(side=3)
> } else {
> axis(side=2)
> }
> }
>
> This leads to a blank window. I am stuck with the intricacies of the plotting
> and axis generation here.
>
> Thank you in advance,
> Alex van der Spek
>
> ______________________________________________
> R-help at 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.
>
More information about the R-help
mailing list