Skip to content

Instantly share code, notes, and snippets.

@aespinosa
Created April 25, 2011 16:56
Show Gist options
  • Save aespinosa/940807 to your computer and use it in GitHub Desktop.
Save aespinosa/940807 to your computer and use it in GitHub Desktop.
R port of plot.sorted-start.png
x<-read.table('filename.event')
x$from<-x$V1-min(x$V1)
x$to<-x$from+x$V2
y<-as.numeric(rownames(x))
x<-x[order(x$from),]
plot(x$to,y, 'n')
segments(x$from,y,x$to,y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment