Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Border color of plot points - R plot [duplicate]

Possible Duplicate:
how to create a plot with customized points in R?

I know in R you can use plot to specify the color of the points

plot(......,col="red") makes the points in a scatter plot, for example, red.

How can I specify the border color of the points such that the border color is different from the fill color.

like image 654
CodeGuy Avatar asked Jul 18 '12 18:07

CodeGuy


1 Answers

You can use the bg parameter to handle how a point is filled. On certain types of plotting characters, this will be visible. For example...

plot(1,1,col=3, bg=2, pch=23)
like image 138
Jeff Allen Avatar answered Sep 21 '22 10:09

Jeff Allen