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() Thanks __________________________________________________ Everything you'll ever need on one web page from News and Sport to Email and Music Charts -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thank you very much everybody. I'm running R in debian potato 2.2.r0 and the output of version is: Platform i686-unknown-linux arch i686 os linux system i686, linux status major 0 minor 90.1 year 1999 month December day 15 language R I get the boxplot, but some parameters don't want to work like this one. May be I should check if there is a more recent version for potato. __________________________________________________ Everything you'll ever need on one web page from News and Sport to Email and Music Charts -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thank you again. I've just installed it from the source and the boxplot works fine. The only think I miss is the history of commands that now doesn't work pressing the arrows on the keyboard. Thanks a lot. __________________________________________________ Everything you'll ever need on one web page from News and Sport to Email and Music Charts -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._