On 18.03.2016 21:58, Cathy Lee Gierke wrote:
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,.....
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
Cathy Lee Gierke *"We are what we repeatedly do. Excellence, then, is not an act, but a habit." Aristotle* [[alternative HTML version deleted]] ______________________________________________ R-help@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.
______________________________________________ R-help@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.