[R] help on ylab of xyplot.zoo

2008-12-28 Thread Rosa Trancoso
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?

How can I see the code of 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.


Re: [R] help on ylab of xyplot.zoo

2008-12-28 Thread Gabor Grothendieck
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.


Re: [R] help on ylab of xyplot.zoo

2008-12-28 Thread Rosa Trancoso
Dear Gabor,

Thank you for the quick answer.

I will use plot.zoo and strech the x-axis with xlim to fit the legend on the
right side of the plot.

Best regards,

Rosa



On Sun, Dec 28, 2008 at 10:52 PM, Gabor Grothendieck 
ggrothendi...@gmail.com wrote:

 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.
 


[[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.