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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>> 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
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
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 ["
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
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
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
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
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
24 matches
Mail list logo