[R] hide solid lines in symbols

ben@zoo.ufl.edu ben at zoo.ufl.edu
Tue Sep 19 16:35:11 CEST 2000


  Two answers, both slightly klugey:

  1. use solid symbols instead of open symbols (e.g., pch=16 instead of
pch=1)

  2. use the solid-symbol equivalents to plot in the background color,
then use the open symbols

x <- runif(5)
plot(x,type="o",pch=16)
## or
plot(x,type="l")
points(x,pch=16,col=par("bg"))
points(x,pch=1)

On Tue, 19 Sep 2000, Jens Schmidt wrote:

> 
> Is it possible creating line plots with symbols so, that the solid line
> doesn't appear in the symbol background. When I fill the symbols with
> color the line is still visible behind the symbols (with 
> plot.default(type="o"))
> 
> plot.default (type="b",lty=1) is not exactly what I want (the space
> between lines and symbols).
> 
> Jens
> 
> --
> Jens Schmidt                    TU Dresden -Inst. f. Hydrobiologie-
> Tel. +49-(0)351-463-6915        Mommsenstrasse 13
> Fax  +49-(0)351-463-7108        01062 Dresden
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 
> 

-- 
318 Carr Hall                                bolker at zoo.ufl.edu
Zoology Department, University of Florida    http://www.zoo.ufl.edu/bolker
Box 118525                                   (ph)  352-392-5697
Gainesville, FL 32611-8525                   (fax) 352-392-3704

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