How can I draw unicode characters like ๐บ WOMENS SYMBOL or ๐น MENS SYMBOL or other characters from this code block? Besides installing the font family that contains these characters, R hangs on my system * when using the pch dot character as follows:
plot(0, type="n") points(1, .5, pch=-0xfffdL)
Like doc states ,
Where the OS is supported, negative values โโindicate the Unicode code, for example, -0x2642L is the male character, and -0x20ACL is the euro.
* My sessionInfo() :
R version 3.2.2 (2015-08-14) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252 LC_NUMERIC=C [5] LC_TIME=German_Germany.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] rsconnect_0.3.79 tools_3.2.2
Thanks for the help and check in your system in advance.
Edit: Windows freezes when I use RStudio 0.99.879 with an RStudio graphics device. If I explicitly use dev.new(noRStudioGD=T) , then I get a smiliar error, as mentioned in the comments: "Error in plot.xy (xy.coords (x, y), type = type, ...): Invalid input of 'รฐลธลกยน' into 'utf8towcs'. For now, I will use the PNG backup option, as described in article 42.
lukeA source share