hist() with horiz=TRUE does not give horiz. plots (PR#372)
Paul Murrell
paul@stat.auckland.ac.nz
Mon, 13 Dec 1999 13:14:29 +1300
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._