[R] labeling abscissa using a function of the plotted scale

Hurr hill0093 at umn.edu
Thu Oct 24 16:00:07 CEST 2013

Thanks Jim, maybe now I can start learning.
Here is a run of my trying to learn:
> xvalue<-c(5.2,1.3,9.7,2.8,8.1,4.7,6.6,7.4)
> yvalue<-c(9,3,4,7,2,5,3,6)
> plot(xvalue,yvalue)
> axis(1,at=NULL,labels=1/xvalue,digits=5)
Error in axis(1, at = NULL, labels = 1/xvalue, digits = 5) :
  'labels' is supplied and not 'at'
In addition: Warning message:
In axis(1, at = NULL, labels = 1/xvalue, digits = 5) :
  "digits" is not a graphical parameter
Why can't R automatically compute the spacing when I use the formula?
How can I specify n-digits or width instead of round or nothing? 

View this message in context: http://r.789695.n4.nabble.com/labeling-abscissa-using-a-function-of-the-plotted-scale-tp4678075p4678954.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list