cmoffet@nwrc.ars.usda.gov
2002-Aug-21 14:10 UTC
error in plot.formula(..., ask = FALSE) (PR#1923)
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._