Re: [R] Degree symbol as axis label superscript

2021-12-01 Thread Rich Shepard
On Wed, 1 Dec 2021, ani jaya wrote: one of my solution : text(x,y,"\u00B0C", cex=1.1, font=2) it will produce "°C" Ani, That's what I did. Thank you, Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/m

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-12-01 Thread Rich Shepard
On Tue, 30 Nov 2021, David Winsemius wrote: There's nothing special about following a digit. You can have it follow anything. Since you were going to need to quote the parentheses anywa, then have it superscripted above the level of the paren: plot(1,1, ylab = expression(Temperature~"("^degree*C

Re: [R] Degree symbol as axis label superscript

2021-11-30 Thread Bert Gunter
Yes, but I should acknowledge my ignorance in not realizing that "\u00b0" (hex 176) is a simpler way to get the character in R without the OS tool than intToUtf8() . If you need math notation beyond simple symbol characters, plotmath is certainly indispensable. Bert On Tue, Nov 30, 2021 at 7:51

Re: [R] Degree symbol as axis label superscript

2021-11-30 Thread Andrew Simmons
Using the degree character seems perfectly legit to me. The reason I suggest looking at plotmath is that I think plotmath is easier to read (that is, if you're escaping your characters with \u), and because for anything more complicated like set notation, big sums, integrals, you'll need to get use

Re: [R] Degree symbol as axis label superscript

2021-11-30 Thread ani jaya
one of my solution : text(x,y,"\u00B0C", cex=1.1, font=2) it will produce "°C" text(x,y,"\u00B3C", cex=1.1, font=2) it will produce "superscript(3)C" so basically change the character after the "\u00B..." will produce the superscript. Best, Ani On Wed, Dec 1, 2021 at 4:05 AM Rich Shepard wro

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-11-30 Thread David Winsemius
On 11/30/21 1:22 PM, Rich Shepard wrote: On Tue, 30 Nov 2021, David Winsemius wrote: Really? What was wrong with this? plot(1, 1, xlab=expression(32^degree) )  # the example given on ?plotmath David, Absolutely nothing. When there's no specific degree value in the label because the axis r

Re: [R] Degree symbol as axis label superscript

2021-11-30 Thread Bert Gunter
True, but unnecessary with UTF-8 encodings of unicode (subject to some caveats, though): plot(1:5, runif(5),xlab = "Temp (°F)", ylab = "result") should work fine, where the º ("degree") symbol was inserted by the symbol insertion facility on my Mac. Windows has something similar. See the comments

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-11-30 Thread Rich Shepard
On Tue, 30 Nov 2021, David Winsemius wrote: Really? What was wrong with this? plot(1, 1, xlab=expression(32^degree) )  # the example given on ?plotmath David, Absolutely nothing. When there's no specific degree value in the label because the axis represents a range of values there's no digit

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-11-30 Thread Rich Shepard
On Tue, 30 Nov 2021, Bill Dunlap wrote: The following makes degree signs appropriately, as shown in ?plotmath: plot(68, 20, xlab=expression(degree*F), ylab=expression(degree*C)) If you want the word "degree" spelled out, put it in quotes. Bill, I missed that last point; thought it was alwa

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-11-30 Thread Bill Dunlap
The following makes degree signs appropriately, as shown in ?plotmath: plot(68, 20, xlab=expression(degree*F), ylab=expression(degree*C)) If you want the word "degree" spelled out, put it in quotes. -Bill On Tue, Nov 30, 2021 at 12:31 PM Rich Shepard wrote: > On Tue, 30 Nov 2021, Rich Shepa

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-11-30 Thread David Winsemius
On 11/30/21 12:29 PM, Rich Shepard wrote: On Tue, 30 Nov 2021, Rich Shepard wrote: Thanks, Andrew. I will. plotmath didn't have the solution; Really? What was wrong with this? plot(1, 1, xlab=expression(32^degree) )  # the example given on ?plotmath -- David. the use of the LaT

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-11-30 Thread Andrew Simmons
I think you have to not put the word degree in quotes, something like: graphics::plot( x = 1, xlab = quote( 32 * degree ) ) works for me, though yours seems like a good solution too On Tue, Nov 30, 2021 at 3:31 PM Rich Shepard wrote: > On Tue, 30 Nov 2021, Rich Shepard w

Re: [R] Degree symbol as axis label superscript [RESOLVED]

2021-11-30 Thread Rich Shepard
On Tue, 30 Nov 2021, Rich Shepard wrote: Thanks, Andrew. I will. plotmath didn't have the solution; the use of the LaTeX ^ for a superscript had a character or number preceeding it. Using 'degree' prints that string on the axis. What does work is using the unicode for the degree symbol as pre

Re: [R] Degree symbol as axis label superscript

2021-11-30 Thread Rich Shepard
On Tue, 30 Nov 2021, Andrew Simmons wrote: Excuse my brevity, but take a look at ?plotmath It has tons of tips for making pretty labels Thanks, Andrew. I will. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.e

Re: [R] Degree symbol as axis label superscript

2021-11-30 Thread Andrew Simmons
Excuse my brevity, but take a look at ?plotmath It has tons of tips for making pretty labels On Tue, Nov 30, 2021, 14:05 Rich Shepard wrote: > I want to present the temperature on the Y-axis label as 'Water Temperature > (oC)' with the degree symbol as a superscript. > > My web search found a c

[R] Degree symbol as axis label superscript

2021-11-30 Thread Rich Shepard
I want to present the temperature on the Y-axis label as 'Water Temperature (oC)' with the degree symbol as a superscript. My web search found a couple of methods; one put the entire example string in the axis label, the other is close, but still incorrect. Source example: #define expression wit

Re: [R] Degree symbol

2011-03-29 Thread stephen's mailinglist account
>> Thank you >> I will experiment with source (looks to be source(file, >> encoding=getOption("latin1" or "UTF-8")). > > No, getOption("encoding") is the literal default, not some sort of general > form.  You want > > encoding="latin1" > > (assuming the whole file uses that encoding). > > Duncan Mu

Re: [R] Degree symbol

2011-03-29 Thread Duncan Murdoch
On 29/03/2011 3:11 PM, stephen's mailinglist account wrote: On 29 March 2011 19:48, Duncan Murdoch wrote: > On 29/03/2011 2:40 PM, stephen's mailinglist account wrote: >> >> I have been using both Windows and Linux versions of R>> Now I have found that the following expression seems to work

Re: [R] Degree symbol

2011-03-29 Thread stephen's mailinglist account
On 29 March 2011 19:48, Duncan Murdoch wrote: > On 29/03/2011 2:40 PM, stephen's mailinglist account wrote: >> >> I have been using both Windows and Linux versions of R >> Now I have found >> that the following expression seems to work on both systems >> >> xlab = expression(paste("Temperature ["

Re: [R] Degree symbol

2011-03-29 Thread Duncan Murdoch
On 29/03/2011 2:40 PM, stephen's mailinglist account wrote: I have been using both Windows and Linux versions of R so when I have opened files created in Windows I have found some issues in Linux. One was that my windows setup allowed me to enter a degree symbol from the keyboard for labelling ax

[R] Degree symbol

2011-03-29 Thread stephen's mailinglist account
I have been using both Windows and Linux versions of R so when I have opened files created in Windows I have found some issues in Linux. One was that my windows setup allowed me to enter a degree symbol from the keyboard for labelling axes. Now I have found that the following expression seems to wo

[R] degree symbol using X11 on OSX

2009-05-26 Thread Andy Jacobson
Howdy, Using the scheme in plotmath, I can no longer get the degree symbol for my on-screen plots, using X11 on OS X. I instead see an upper- case upsilon (I think). This is reproducible using "demo(plotmath)". A figure drawn with this faulty symbol produces correct postscript (i.e. wi

Re: [R] Degree Symbol

2008-06-05 Thread Gabor Grothendieck
Try: RSiteSearch("plotmath degree character") On Thu, Jun 5, 2008 at 1:18 PM, stephen sefick <[EMAIL PROTECTED]> wrote: > I have looked at math plot and still can not figure out how to get a degree > symbol into the y label. I would like degrees C > thanks > > Stephen > > -- > Let's not spend o

[R] Degree Symbol

2008-06-05 Thread stephen sefick
I have looked at math plot and still can not figure out how to get a degree symbol into the y label. I would like degrees C thanks Stephen -- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel