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 = 0.75+strh/2,pch="¼",family="wdg2",col="red") points(x = 0.5, y = 0.75-strh/2,pch="½",family="wdg2",col="green") strw<-strwidth("º") points(.4-strw/2,.7,pch="º",family="wdg2",col="red") points(.4+strw/2,.7,pch="»",family="wdg2",col="green") Cheers Am 28.03.2012 04:49, schrieb 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 > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Eik Vettorazzi Department of Medical Biometry and Epidemiology University Medical Center Hamburg-Eppendorf Martinistr. 52 20246 Hamburg T ++49/40/7410-58243 F ++49/40/7410-57790 -- Pflichtangaben gemäß Gesetz über elektronische Handelsregister und Genossenschaftsregister sowie das Unternehmensregister (EHUG): Universitätsklinikum Hamburg-Eppendorf; Körperschaft des öffentlichen Rechts; Gerichtsstand: Hamburg Vorstandsmitglieder: Prof. Dr. Guido Sauter (Vertreter des Vorsitzenden), Dr. Alexander Kirstein, Joachim Prölß, Prof. Dr. Dr. Uwe Koch-Gromus ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.