[R] lines and points without margin
baptiste.auguie at googlemail.com
Tue Dec 14 16:44:16 CET 2010
Try the following,
## fill the points in white
You could also try this with Grid graphics,
# like type="o"
# like type="b"
# like the example above, but without filling the dots
(I may be wrong but don't recall that this parameter is tunable with
On 14 December 2010 16:33, Andrew Collier <collierab at gmail.com> wrote:
> i am sure that this is a trivial question but i have not been able to
> find an answer by searching the mailing lists. i want to plot points on
> a graph, joined by lines. the command that i am using is
> points(x, y, type = "b", pch = 21)
> this plots nice open circles at the data points and draws lines between
> them. however, the lines do not come all the way up to the edge of the
> circles but stop some small distance away so that there is an empty
> "margin" around the circles. is there a way to get rid of this margin?
> my first guess was that there would be an option to par() but i did not
> find anything there. any suggestions would be appreciated.
> best regards,
> Andrew B. Collier
> Waves and Space Plasmas Group
> Hermanus Magnetic Observatory
> Honorary Senior Lecturer tel: +27 31 2601157
> Space Physics Research Institute fax: +27 31 2607795
> University of KwaZulu-Natal, Durban, South Africa gsm: +27 83 3813655
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help