[R] plot points using circles filled half in red and half in blue.

Jim Lemon jim at bitwrit.com.au
Sat Mar 31 11:53:06 CEST 2012


On 03/28/2012 01:49 PM, alan wrote:
> I want to plot many points and want to use circles. The filling color
> depends on variable a. if a=1, then not fill
> if a=2 then fill with red, if a=3 then fill with blue, if a=4, fill
> half with red and half with blue. Can anyone tell me how to plot the
> case "a=4"? Thanks a lot
>
Hi alan,
I think you can do this with the "floating.pie" function (plotrix). Just 
plot two equal numbers and the "pie" will be two half circles.

Jim



More information about the R-help mailing list