Does R graphics have a way to easily label the horizontal axis by the reciprocal of the scaled value? -- View this message in context: http://r.789695.n4.nabble.com/Graphics-Reciprocal-labeling-tp3949054p3949054.html Sent from the R help mailing list archive at Nabble.com.
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
Seemingly Similar Threads
- Reciprocal Mill's Ratio
- [LLVMdev] Proposal: New DAG node type for reciprocal operation
- system is computationally singular: reciprocal condition number
- [LLVMdev] Proposal: New DAG node type for reciprocal operation
- [LLVMdev] Proposal: New DAG node type for reciprocal operation