I have a vector of dates:

> data$date
 [1] "2009-04-06 CDT" "2009-04-07 CDT" "2009-04-08 CDT" "2009-04-09 CDT"
"2009-04-10 CDT" "2009-04-11 CDT" "2009-04-12 CDT" "2009-04-14 CDT"
 [9] "2009-04-15 CDT" "2009-04-16 CDT" "2009-04-17 CDT" "2009-04-18 CDT"
"2009-04-19 CDT" "2009-04-21 CDT" "2009-04-22 CDT" "2009-04-23 CDT"
[17] "2009-04-24 CDT" "2009-04-25 CDT" "2009-04-26 CDT" "2009-04-27 CDT"
"2009-04-28 CDT" "2009-04-29 CDT" "2009-05-01 CDT" "2009-05-02 CDT"
[25] "2009-05-03 CDT" "2009-05-04 CDT" "2009-05-05 CDT" "2009-05-06 CDT"
"2009-05-07 CDT" "2009-05-08 CDT" "2009-05-09 CDT" "2009-05-10 CDT"
[33] "2009-05-12 CDT" "2009-05-13 CDT" "2009-05-14 CDT" "2009-05-15 CDT"
"2009-05-16 CDT" "2009-05-17 CDT" "2009-05-18 CDT" "2009-05-19 CDT"
[41] "2009-05-20 CDT" "2009-05-21 CDT" "2009-05-22 CDT" "2009-05-23 CDT"
"2009-05-24 CDT" "2009-05-25 CDT" "2009-05-26 CDT" "2009-05-27 CDT"
[49] "2009-05-29 CDT" "2009-05-30 CDT" "2009-05-31 CDT" "2009-06-01 CDT"
"2009-06-02 CDT" "2009-06-03 CDT" "2009-06-05 CDT" "2009-06-06 CDT"
[57] "2009-06-07 CDT" "2009-06-09 CDT" "2009-06-10 CDT" "2009-06-11 CDT"
"2009-06-12 CDT" "2009-06-13 CDT" "2009-06-14 CDT"

I'd like to make a subset of this data as the x axis for a graph, using 10,
so the first would be the first date, the final would be the final date, and
the 8 in between would be spread equally through the set.

Currently I have this:

plot(data$date, data$DIFF, xaxt='n', xlab='', type='l', yaxt='n', ylab='',
bg='white', tck=-0.025, main='', col='blue')
axis(1, at=unique(data$date), labels=unique(data$date), lwd=.25, tck=-0.025)

Which renders all 63 dates, which of course is far too cluttered. Any idea
how I can easily reduce this to a subset of 10?


-- 
Wells Oliver
wells@submute.net

	[[alternative HTML version deleted]]


