delagoya (owner)

Revisions

gist: 180288 Download_button fork
public
Public Clone URL: git://gist.github.com/180288.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
# assume you have a file with lots if dates
d <- read.delim('datafile.txt')
 
# plot the values on Y dates on X
plot(d$webhits, type='l', xaxt='n', xlab='', ylab='', xlim=c(1,length(d$date)))
 
# draw the x axis
date.labels <- d$date[pretty(1:length(d$date),10) + 1 ]
axis(1,at=pretty(1:length(d$date),10),labels=date.labels)