Skip to content

degree sign

2 messages · Cathy Lee Gierke, Uwe Ligges

#
I have searched and tried many things but cannot get anything to work.  I
just want to print out a degree sign after a the Orthophase number.

The following list of "xl" values are all ones I have tried.  Granted they
are not what I want, but I have tried them all, and none of them print out
a degree symbol...

#                   xl = expression(paste("Orthophase [", {
#                   }^o, "]"))
                  #xl<-~degree~C
                  #xl<-parse(text = ~degree)
                  #xl<-parse(text = paste(" ", "~degree", sep = ""))
                  #xl<-expression(~degree)
                  xl <- parse(text = paste(Orthophase[i,j], "*degree ~ S",
sep = ""))


                  printXlab<-paste("Orthophase    ",Orthophase[i,j],xl,"
  ")

plot(MyData$time.hour[plotData],newData[plotData],type="l", xaxt="n",
xlab=printXlab,.....


Cathy Lee Gierke

*"We are what we repeatedly do.  Excellence, then, is not an act, but a
habit." Aristotle*
#
On 18.03.2016 21:58, Cathy Lee Gierke wrote:
It has to be an expression, you must not use paste() around it:

plot(MyData$time.hour[plotData], newData[plotData], type="l", xaxt="n",
      xlab = expression("Orthophase    " * Orthophase[i,j] * degree))

Best,
Uwe Ligges