[R] Advanced graphics for points

Marc Schwartz marc_schwartz at comcast.net
Tue Feb 13 17:40:43 CET 2007

On Tue, 2007-02-13 at 08:31 -0800, Strongbad78 wrote:
> Hi all,
> For aestethic purposes, I would like to plot points on an xy plot that
> consist of a filled circle with a black outline.
> I can sort of bodge it by plotting pch=21, col="black" and pch=16, col="red"
> on the same plot, but it looks a bit ugly and there are problems when points
> overlap.
> Can anyone think of a way around this?
> Thanks in advance
> Tony

Is this what you want?

  plot(rnorm(10), col = "black", bg = "red", pch = 21)

See the Details in ?points


Marc Schwartz

More information about the R-help mailing list