[R] Degree symbol as axis label superscript [RESOLVED]
David Winsemius
dw|n@em|u@ @end|ng |rom comc@@t@net
Wed Dec 1 02:22:51 CET 2021
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 represents a range of values there's no digit preceeding
> the ^ symbol.
>
> The axis label is 'Temperature (oC)' with the degree symbol preceeding a
> character, not following a specific digit.
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*")") )
--
David.
>
> Rich
>
> ______________________________________________
> R-help using 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.
More information about the R-help
mailing list