Re: [R] drawing segments through points with pch=1

From: Jim Lemon <jim_at_bitwrit.com.au>
Date: Mon, 21 Jul 2008 19:12:09 +1000

  1. On Sun, 2008-07-20 at 15:40 +0100, David Epstein wrote:
    > What I don't like about type="b", also suggested by Paul Smith, is
    > that the segments do not go right up to the little circles---a gap is
    > left, which I don't like. So far, Uwes' solution is what suits me
    > best. However, I understand Brian's objection, though it doesn't
    > apply in my case. The discussion makes me fear that it's a very long
    > road ahead before I can get fine control of R graphics.

Hi David,
If you want to get transparency in the middle of the points and lines that connect them, try this:

pointgap<-strwidth("o")/2
segments(x[1:ll-1]+pointgap,ybar,x[2:ll]-pointgap,ybar)

Jim



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 21 Jul 2008 - 09:11:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 21 Jul 2008 - 09:32:01 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive