error in plot.formula(..., ask = FALSE) (PR#1923)

cmoffet@nwrc.ars.usda.gov cmoffet@nwrc.ars.usda.gov
Wed, 21 Aug 2002 16:10:49 +0200 (MET DST)


Full_Name: Corey A. Moffet
Version: 1.5.1
OS: windows 2000
Submission from: (NULL) (199.133.140.156)


Passing ask = FALSE in plot.formula returns an error.

For example:
-------------------

dat <- data.frame(y  =            c(1,1,1,2,2,2,3,3,3,4,4,4), 
                  x1 = as.ordered(c(1,1,1,1,1,1,2,2,2,2,2,2)),
                  x2 = as.ordered(c(1,1,1,2,2,2,1,1,1,2,2,2)))

plot(y ~ x1 + x2, data = dat) # Works fine "interactively" asking:
# "Hit <Return> to see next plot:"
#  But this causes problems when it is run in a batch file.

plot(y ~ x1 + x2, data = dat, ask = FALSE) # gives error:
# "Error in model.frame(formula, rownames, variables, varnames, extras,
# extranames,  :   variable lengths differ"

-------------------



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