[R] lattice plot - portrait / landscape
deepayan at stat.wisc.edu
Tue Sep 9 15:13:22 CEST 2003
On Tuesday 09 September 2003 05:48, Andrew C. Ward wrote:
> Dear Manbub,
> I assume that you mean you want the boxes to be vertical
> rather than horizontal (which is the default). Compare the
> following two uses of bwplot:
> bwplot(voice.part ~ height, data=singer, xlab="Height
> bwplot(height ~ voice.part, data=singer, ylab="Height
> (inches)", horizontal=FALSE)
One small additional comment: you shouldn't need to use the horizontal
argument in this case, or whenever exactly one of the arguments is a factor.
horizontal "defaults" to TRUE only when both are numeric or both are factors
(ideally neither should happen).
> If by some chance you wish to change the orientation of a
> saved graph, you'll find that the postscript device has an
> argument horizontal that affects the orientation of the
> printed image. See ?postscript for all the glorious details.
> If you mean something else entirely, perhaps you'd better
> rephrase the question :)
> Andrew C. Ward
> CAPE Centre
> Department of Chemical Engineering
> The University of Queensland
> Brisbane Qld 4072 Australia
> andreww at cheque.uq.edu.au
> Quoting Mahbub Latif <ahmlatif at yahoo.com>:
> > Hi,
> > How can I use portrait/landscape option in lattice
> > bwplot? Is there any option in trellis.device where I
> > can define this?
> > Thanks in advance,
> > Mahbub.
> > ______________________________________________
> > R-help at stat.math.ethz.ch mailing list
> > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> R-help at stat.math.ethz.ch mailing list
More information about the R-help