[R] Horizontal Boxplot

Ott Toomet siim at obs.ee
Mon Feb 18 08:50:08 CET 2002


Hello,

On Sun, 17 Feb 2002, [iso-8859-1] 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()

What version of R and what OS do you use?

> par(bg="cornsilk")
> 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)

works fine on my R 1.4.0, RH7.1 linux.

Ott Toomet


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