Dear all,
I'm trying to plot the degree symbol by itself between two square
brackets. I just want to have "K [?]". So far I got to:
expression(K ~ group("[",1*degree,"]"))
or
expression(K ~ group("[",1^o,"]"))
But it won't work without a number or letter.
Any suggestions?
Thanks,
andre
Plot degree symbol by itself
3 messages · Andre Jung, Henrik Andersson, Peter Dalgaard
Andre Jung wrote:
Dear all,
I'm trying to plot the degree symbol by itself between two square
brackets. I just want to have "K [?]". So far I got to:
expression(K ~ group("[",1*degree,"]"))
or
expression(K ~ group("[",1^o,"]"))
But it won't work without a number or letter.
This worked for me:
expression(K ~ group("[",degree,"]"))
Any suggestions? Thanks, andre
______________________________________________ R-help at stat.math.ethz.ch 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.
Henrik Andersson Danish Meteorological Institute Lyngbyvej 100 2100 Copenhagen ? Denmark Tel: +45 39157215 Email: han at dmi.dk
Andre Jung wrote:
Dear all,
I'm trying to plot the degree symbol by itself between two square
brackets. I just want to have "K [?]". So far I got to:
expression(K ~ group("[",1*degree,"]"))
or
expression(K ~ group("[",1^o,"]"))
But it won't work without a number or letter.
Any suggestions?
An empty pair of braces usually works:
plot(0)
text(1,1,expression(K ~ group("[",{}*degree,"]")))
(or {}^degree, but that looks odd -- degree is already a raised symbol)
But whatever was wrong with just
text(1.2,1,expression(K ~ group("[",degree,"]")))
??
Thanks, andre
______________________________________________ R-help at stat.math.ethz.ch 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.