[R] filed plot symbols

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Tue Oct 17 21:34:42 CEST 2000


Ross Ihaka <ihaka at stat.auckland.ac.nz> writes:

> On Tue, Oct 17, 2000 at 04:13:51PM +0100, Dermot MacSweeney wrote:
> > As a follow on to Bill's question, if we look at the example which he gives, the 
> > legend will have lines going through the empty symbols. If there any way to 
> > prevent this aside from the obvious (only use filled symbols in graphs).

> One way of not having lines pass through the plotting points is to use
> type="b" (both lines and points).
> 
> 	plot(x, y, type="b", pch=1, lty="11")

but legend() does not appear to be using this. It has

    if (has.pch) {
   ...
    }
    if (do.lines) {
   ...
    }

Offhand, I suspect that switching the blocks around might solve the
problem.

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