[R] Label axis tick marks with a simple function of axis value

Hurr hill0093 at umn.edu
Wed Apr 9 05:12:52 CEST 2014


This still puts tick marks at data points:
h=c(1,2,3,4,5,6,7,8,9)
v=c(9,8,7,6,5,4,3,2,1)
plot(h,v,xaxt='n')
x<-c(1.6,2.6,6.6,9.6,12.9)
axis_labels<-1/pretty(x)
axis(1,at=pretty(x),labels=axis_labels)
How do I get the axis to approx 13 ?




--
View this message in context: http://r.789695.n4.nabble.com/Label-axis-tick-marks-with-a-simple-function-of-axis-value-tp4687917p4688443.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list