I have two questions: 1. I've tried to use the lattice package with the development version of R (1.5.0), windows 2000, and it consistantly crashes RGUI and Rterm, on two seperate installations... 2. The real question... Is it possible to change the barchart horizontal bars on lattice to give vertical bars? If so, could you please give me a hint on how to do so? Thanks, Shawn Way Process Engineer Tanox, Inc. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 12 Apr 2002, Shawn Way wrote:> > I have two questions: > > 1. I've tried to use the lattice package with the development version of R > (1.5.0), windows 2000, and it consistantly crashes RGUI and Rterm, on two > seperate installations...You do need grid 0.6 and lattice 0.5, and those are in the 1.5.0 areas on CRAN. You gave us no idea where you got `the development version of R' from, nor who compiled it .... Please take this up with whoever did provide it. Today's R-devel sources and the current versions of grid and lattice do work under Windows (but lattice gives some spurious debugging output). -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
--- Shawn Way <sway at tanox.com> wrote:> > I have two questions: > > 2. The real question... Is it possible to change the barchart horizontal > bars on lattice to give vertical bars? If so, could you please give me a > hint on how to do so?This should be doable in the development version of Lattice. There is an example in example(xyplot), and it's exactly as you would expect (I hope); i.e, you would get vertical bars if you do barchart(y~x) where x is a factor/shingle/character vector and y is numeric. If you really want this when x is numeric, you have to additionally give barchart(y~x, horizontal = FALSE) One issue is how to write the levels of x on the x-axis. If the labels are long, I would suggest either scales = list(x=list(rot = 90)) or scales = list(x=list(abbreviate = TRUE)) -Deepayan __________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._