From p.dalgaard@kubism.ku.dk  Thu Oct 30 15:17:08 1997
From: p.dalgaard@kubism.ku.dk (Peter Dalgaard BSA)
Date: 30 Oct 1997 16:17:08 +0100
Subject: R-alpha: Minor plotting problems
In-Reply-To: Martin Maechler's message of Thu, 30 Oct 1997 11:54:52 +0100
Message-ID: <x2iuufuvpn.fsf@blueberry.kubism.ku.dk>

1) There's a curious asymmetry between points and lines, in that you can
do
lines(...,type='p')
but not
points(...,type='l')
(and more importantly, not points(..., type='b'), which probably
*could* arise in real work)

This isn't deliberate, is it?

2) Did I remember to report the adverse effect of having plot(x,y)
coerce its argument to numeric? Several of my students managed to set
the data type to "character" in data.entry(), do a plot(bw,rmr) with
no apparent problem, and *then* become absolutely perplexed when
lm(rmr~bw) yields

Error in model.frame(formula, data, substitute(list(...)), subset,
na.action) : invalid variable type

3) The first few lines of hist() should be

        if (!is.numeric(x)) 
                stop("hist: x must be numeric")
        eval(main)
        eval(xlab)
        x <- x[!is.na(x)]
 
The two 'eval's are necessary to avoid strange side effects of
modifying x. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


R-alpha: Minor plotting problems
Peter Dalgaard BSA