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
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?
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 =
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
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
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,
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
7 matches
Mail list logo