[R] Plot half filled circle utf pch

Michael Weber michael.weber.1 at uni-jena.de
Fri Jun 3 20:19:55 CEST 2016


Dear R users,

I have been using R for several years and really appreciate all the  
developments which have been done. Maybe you can help me with the  
following problem:

I would like to plot full circles together with half circles in the  
same plot. Unfortunately, the size of the different UTF symbols is not  
equal

plot(range(1,2),type="n")
points(rep(1,2),rep(1,2),pch=c("\u25CB","\u25D3"),col=c("black","blue"))

I could change the cex value for each pch but I am looking for a more  
elegant solution.

Thanks for your help,
Michael



More information about the R-help mailing list