[R] Printing special characters

Rui Barradas ru|pb@rr@d@@ @end|ng |rom @@po@pt
Mon Jan 16 09:46:43 CET 2023


Às 08:31 de 16/01/2023, Jeff Newmiller escreveu:
> Use the Cairo PDF device?
> 
> On January 16, 2023 12:18:48 AM PST, Dennis Fisher <fisher using plessthan.com> wrote:
>> R 4.2.2
>> OS X
>>
>> Colleagues
>>
>> A file that I have read includes strings like this:
>> 	"EVENT ≥ 30 sec"
>> When I include the string in a graphic using:
>> 	mtext(STRING, …)
>> it appears as:
>> 	"EVENT ... 30 sec"
>>
>> Is there a simple work-around (short of reformatting all the strings, then using plotmath)?
>>
>> Dennis
>>
>> Dennis Fisher MD
>> P < (The "P Less Than" Company)
>> Phone / Fax: 1-866-PLessThan (1-866-753-7784)
>> www.PLessThan.com
>>
>> ______________________________________________
>> R-help using 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.
> 
Hello,

I had no problems with


X11()
plot(1,1, pch = "")
text(1, 1, "EVENT ≥ 30 sec")
#dev.off()


Hope this helps,

Rui Barradas



More information about the R-help mailing list