hist() with horiz=TRUE does not give horiz. plots (PR#372)
Mon, 13 Dec 1999 13:14:29 +1300
----- Original Message -----
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) (126.96.36.199)
> If you use the horiz= option with hist() you get the message:
> parameter "horiz" couldn't be set in high-level plot() function.
> and the plot comes out vertical. The documentation says this option comes
> 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() ?
p.s. you can "fake" a horizontal histogram using barplot. for example, try
hist.info <- hist(x, breaks=-3:3)
barplot(hist.info$counts, space=0, horiz=T)
... 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: email@example.com