[R] Horizontal Boxplot

Uwe Ligges ligges at statistik.uni-dortmund.de
Mon Feb 18 08:59:37 CET 2002


Dragón wrote:
> 
>   Hello all.
> 
>   I'm just a beginner trying to draw a boxplot and I don't know why every time
> I try to make it horizontal I receive the error message "parameter
> 'horizontal' couldn't be set in high-level plot() function". Can anybody give
> me an advice?
>   Here is the code:
> 
> opar <- par(ask = interactive() && (.Device == "X11" || .Device == "windows"))
> # For source
> 
> #pictex(file = "graf.tex", bg = "white", fg = "black", width = 4, height = 4,
> debug = FALSE)
> par(bg="cornsilk")
> n <- 2
> g <- c(452, 395, 317, 254, 202)
> x <- c(590, 497, 414, 326, 276)
> 
> boxplot(g,x,horizontal=T)
> title(main="Gross weekly earnings", ylab="Pounds", font.main=4, font.lab=1)
> #dev.off()

I don't see it on WinNT4, R-1.4.1.
I guess you are not running a recent version of R?


A *warning* (not error) message like
"parameter 'xyz' couldn't be set in high-level plot() function"
often appears as in the following nonsens-example:

 my.plot <- function(x, ...){
   plot(x, ..., xaxt="n")
   axis(1, ...)
 }

 my.plot(1:10, main="Hello")

Here parameter 'main' will be (because of the dots) passed through to
axis(), but axis() doesn't know about it.
So just ignore this warning message, if the plot appears to be alright
for you.

Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list