[R] Plot half filled circle utf pch

Jim Lemon drjimlemon at gmail.com
Sat Jun 4 06:45:10 CEST 2016


Hi Michael,
Have a look at my.symbols in the TeachingDemos package.

Jim


On Sat, Jun 4, 2016 at 4:19 AM, Michael Weber
<michael.weber.1 at uni-jena.de> wrote:
>
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> 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.



More information about the R-help mailing list