[R] Degree symbol as axis label superscript [RESOLVED]
@kw@|mmo @end|ng |rom gm@||@com
Tue Nov 30 21:43:03 CET 2021
I think you have to not put the word degree in quotes, something like:
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 <rshepard using appl-ecosys.com>
> 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 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 plot
> 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.
[[alternative HTML version deleted]]
More information about the R-help