On Oct 28, 2011, at 3:57 PM, Hurr wrote:
Does R graphics have a way to easily label the horizontal axis by the reciprocal of the scaled value?
plot(x<-1:10,y<-1:10, xaxt="n") axis(1, at=1:10, labels=round(1/x, 3) ) It is a bit more difficult to do it as a fractional label but possible: rm(x) plot(x<-1:10,y<-1:10, xaxt="n") xepr <- as.expression( sapply(x, function(y) bquote(frac(1, .(y) )) )) axis(1, at=1:10, labels=xepr )
-- David Winsemius, MD West Hartford, CT ______________________________________________ R-help@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.