[R] plot ᵒ C in graph axis label

Pascal Oettli kridox at ymail.com
Fri Feb 8 10:52:44 CET 2013


Hello,

I don't know whether it matches what you are looking for. Here are some 
example using different spacing:

 > par(las=1, mfrow=c(2,2))
 > plot(1,1,ylab=expression(paste('rate (',degree~C^-1,')')), 
main='Spacing with ~')
 > plot(1,1,ylab=expression(paste('rate (',degree,phantom(0),C^-1,')')), 
main='Spacing with phantom(0)')
 > plot(1,1,ylab=expression(paste('rate (',degree,phantom(),C^-1,')')), 
main='Spacing with phantom()')
 > plot(1,1,ylab=expression(paste('rate (',degree*C^-1,')')), 
main='Spacing with *')

Hope this helps,
Pascal

Le 08/02/2013 18:36, e-letter a écrit :
> Readers,
>
> For a part of the 'plot' command:
>
> ...ylab=expression(paste('rate (',degree~C^-1,')'))...
>
> Is it possible to introduce 'thinspace' (e.g. '\thinspace' in LaTeX)
> between the degree (°) sign and the centigrade (C) symbol?
>
> --
> r2151
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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