[R] Degree symbol as axis label superscript [RESOLVED]
dw|n@em|u@ @end|ng |rom comc@@t@net
Tue Nov 30 21:58:47 CET 2021
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
> the use of the LaTeX ^ for a superscript
> had a character or number preceeding it. Using 'degree' prints that
> on the axis.
> What does work is using the unicode for the degree symbol as prefix to
> either C or F. In my case:
> ylab('Water Temperature (\u00B0C)')
> does the job.
> I found this solution with the DDG search string, 'degree symbol in R
> axis label'. This stackexchange thread has the answer:
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help