Re: hist() with horiz=TRUE does not give horiz. plots (PR#372)

About this list Date view Thread view Subject view Author view Other groups

Subject: Re: hist() with horiz=TRUE does not give horiz. plots (PR#372)
From: Paul Murrell (paul@stat.auckland.ac.nz)
Date: Mon 13 Dec 1999 - 10:14:29 EST


Message-ID: <00f101bf44ff$06bdbb30$175dd882@stat.auckland.ac.nz>

hi

----- Original Message -----
From: <fran@stat.berkeley.edu>
To: <r-devel@stat.math.ethz.ch>
Cc: <R-bugs@biostat.ku.dk>
Sent: Sunday, December 12, 1999 12:27 PM
Subject: hist() with horiz=TRUE does not give horiz. plots (PR#372)

> Full_Name: Fran Rizzardi
> Version: 0.90.0
> OS: Solaris, NT 4.0
> Submission from: (NULL) (128.32.135.223)
>
>
> If you use the horiz= option with hist() you get the message:
>
> Warning:
> parameter "horiz" couldn't be set in high-level plot() function.
>
> and the plot comes out vertical. The documentation says this option comes
from
>
> barplot() and it does work correctly in barplot().
>
> This message comes whether horiz= is set to FALSE or TRUE.

The warning message you are getting is just telling you that "horiz" is not
a valid argument to hist() (and that it is not a valid par() either).
"horiz" is quite specific to barplot().

what was the documentation that lead you to try "horiz" with hist() ?

paul

p.s. you can "fake" a horizontal histogram using barplot. for example, try
...

x<-rnorm(20)
par(mfrow=c(1,2), pty="s")
hist.info <- hist(x, breaks=-3:3)
barplot(hist.info$counts, space=0, horiz=T)
axis(2, labels=-3:3)

... but perhaps you would prefer it if we made it so that you could use
"horiz" with hist() ?

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:11 EST