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
Use the Cairo PDF device? On January 16, 2023 12:18:48 AM PST, Dennis Fisher <fisher at 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 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.-- Sent from my phone. Please excuse my brevity.
How about just 'EVENT > 30 sec' or 'EVENT > 29 sec' ? On Mon, Jan 16, 2023 at 10:19 AM Dennis Fisher <fisher at 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 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. >[[alternative HTML version deleted]]
Hallo Dennis Is the STRING in R still containing **?** character? Or it was converted during reading to R to ...? What dput(STRING) result i? Cheers Petr> -----Original Message----- > From: R-help <r-help-bounces at r-project.org> On Behalf Of Dennis Fisher > Sent: Monday, January 16, 2023 9:19 AM > To: r-help at r-project.org > Subject: [R] Printing special characters > > 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 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.