Skip to content

quick "points" question

4 messages · Richard Nixon, Uwe Ligges, Peter Dalgaard +1 more

#
Hi
Just one of those niggles.......

I've just been trying to plot a filled circle.
I thought that this would do it

plot(1,1,type="n")
points(1,1,pch=1,bg="blue",cex=5)
#bg: background ("fill") color for open plot symbols

But I need to do this instead
points(1.2,1,pch=19,col="blue",cex=5)

Am I misunderstanding the "bg" option in the points function?

Richard
#
Richard Nixon wrote:

            
Please read ?points and it's paragraph on te argument "pch" with quite 
some information regarding filled symbols...

Uwe Ligges
#
Richard Nixon <richard.nixon at mrc-bsu.cam.ac.uk> writes:
Sort of. The quick answer is: example(points). I think you'll get the
point.
#
On Tue, 27 Sep 2005, Richard Nixon wrote:

            
Yes. See the examples.   pch=1 is not an `open plot symbol': 21-25 are.
So in your case

points(1.3, 1, pch=21, col="blue", bg="red", cex=5)

may be illuminating.