[R] axis on a non-uniform scale

Patrick Connolly p_connolly at slingshot.co.nz
Mon Jun 15 22:06:46 CEST 2009


On Mon, 15-Jun-2009 at 04:23AM -0700, deanj2k wrote:

|> 
|> hi everyone, just wondering how i might go about plotting a graph (say using
|> the plot() function) where my x axis is plotting points which have
|> Log(values) but i want my x axis to display values in exponentiated form
|> 
|> ie. my log values (also scale of the x axis)     x axis displays
|>         -1                                                  exp(-1) = 0.36
|>          0                                                  exp(0) = 1
|>          1                                                  exp(1) = 2.72
|>          2                                                  exp(2) = 7.39  
|> ...etc


Check out the axis function -- particularly the at and labels arguments.

HTH

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___    Patrick Connolly   
 {~._.~}                   Great minds discuss ideas    
 _( Y )_  	         Average minds discuss events 
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)  	                      ..... Eleanor Roosevelt
	  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.




More information about the R-help mailing list