[R] Problems with symbol in evaluate expression function in axis labels

From: fernando espindola <fdoespin_at_gmail.com>
Date: Tue, 10 May 2011 11:05:18 -0400


Hi R-helps

I have the follow problem when try to put degree symbol in axis labels via expression function in the next example code, but when put infinity in expression put the degree symbol....

x<-sample(10);y<-sample(10)
plot(x,y,pch="+",axes=FALSE,ylab="",xlab="")

ax<-seq(1,10,by=2)
axis(1,at=ax,labels=parse(text=paste(ax,"*degree~W",sep="")))
axis(2,at=ax,labels=parse(text=paste(ax,"*infinity~S,sep="")),las=2)

Thank for all

This is my R version...

R> R.Version()
$platform
[1] "i686-pc-linux-gnu"

$arch
[1] "i686"

$os
[1] "linux-gnu"

$system
[1] "i686, linux-gnu"

$status
[1] ""

$major
[1] "2"

$minor
[1] "13.0"

$year
[1] "2011"

$month
[1] "04"

$day
[1] "13"

$`svn rev`
[1] "55427"

$language
[1] "R"

$version.string
[1] "R version 2.13.0 (2011-04-13)"

        [[alternative HTML version deleted]]



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. Received on Tue 10 May 2011 - 15:07:35 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 10 May 2011 - 15:20:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive