I suspect that Scott really means barchart (i.e. Trellis/Lattice style plot).
I'd be very interested in the answer as well (just got a request for such a
beast from a collaborator). I think it wouldn't be too hard to write, but
might require some work with the lattice package so to switch all labels --
default settings do not seem to like "factors" on the X (bottom) axis,
at least based on preliminary investigation.
best,
-tony
On Wed, 27 Mar 2002, Ott Toomet wrote:
> I am not quite sure what do you mean with barchart (I have not the
> particular book) but I think barplot() is what you are looking for.
>
> Try
>
> barplot(rnorm(10))
> barplot(rnorm(10), horiz=TRUE)
>
> regards,
>
> Ott Toomet
>
> On Tue, 26 Mar 2002, Waichler, Scott R wrote:
>
> |
> |I would like to create a barchart that has vertical instead of
horizontal
> |bars. My goal is something similar to Figure 6.10 (p. 166) in
> |"The Basics of S and S-plus," except for the orientation of
the bars.
> |I don't think bwplot() or xyplot() will work. Any suggestions?
> |
> |Scott Waichler
> |
> |Hydrology Group/Environmental Technology Division
> |Battelle Pacific Northwest National Laboratory
> |(email) scott.waichler at pnl.gov
> |
>
|-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> |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
>
|_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> |
>
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._