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

2012-03-31 Thread Jim Lemon
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

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

2012-03-28 Thread Rolf Turner
On 28/03/12 15:49, 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?

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

2012-03-28 Thread Eik Vettorazzi
Hi Alan, on an UTF-8 locale you can use \u25D6 and \u25D7, but you have to plot group a=4 twice. On Windows in a non-utf locale you can use a special Windows font: windowsFonts(wdg2=windowsFont(Wingdings 2)) plot(0:1,0:1) strh-strheight(x)/2.02 points(x = 0.5, y =

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

2012-03-28 Thread Barry Rowlingson
On Wed, Mar 28, 2012 at 11:02 AM, Eik Vettorazzi e.vettora...@uke.de wrote: Hi Alan, on an UTF-8 locale you can use \u25D6 and \u25D7, but you have to plot group a=4 twice. The problem with that is that by default the two half-circles will be centred on the point location, so won't join look

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

2012-03-28 Thread Gabor Grothendieck
On Tue, Mar 27, 2012 at 10:49 PM, alan alan.wu2...@gmail.com 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

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

2012-03-28 Thread Greg Snow
I would use the my.symbols function from the TeachingDemos package (but then I might be a little bit biased), here is a simple example: library(TeachingDemos) x - runif(25) y - runif(25) z - sample(1:4, 25, TRUE) ms.halfcirc2 - function(col, adj=pi/2, ...) { theta - seq(0, 2*pi,

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

2012-03-27 Thread alan
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