[R] Horizontal Boxplot

Mark Myatt mark at myatt.demon.co.uk
Mon Feb 18 14:45:18 CET 2002


Dragón <dragon379 at yahoo.es> writes:

>  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()

Works OK on my boxes running R 1.3.1 on Win98 and Linux (SuSe 7.3).
Perhaps you have an older or test version.

Mark

--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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