fran@stat.berkeley.edu
1999-Dec-11 23:27 UTC
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. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Paul Murrell
1999-Dec-13 00:14 UTC
hist() with horiz=TRUE does not give horiz. plots (PR#372)
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 comesfrom> > 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Fran Rizzardi
1999-Dec-13 18:33 UTC
hist() with horiz=TRUE does not give horiz. plots (PR#372)
Paul, Thank you for your quick reply. The reason I thought horiz= would work with hist() is that it does in Splus. (I was converting an S script to R.) In Splus, help(hist) syntax denotes by ... "additional arguments to barplot". However, I just noticed that in R, help(hist) denotes by ... "further graphical parameters to 'title' and 'axis'". Please consider adding this functionality to hist(). In the mean time, I'll try out your barplot() example as a possible replacement for my hist() command. Thank you for providing it. Fran Rizzardi P.S. Please say hello to Ross for me if you see him. He was a housemate of mine in graduate school. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._