Skip to content

Instantly share code, notes, and snippets.

@CnrLwlss
Created July 11, 2017 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CnrLwlss/f9e1d964882cd8dea67bf1bcb97e90a2 to your computer and use it in GitHub Desktop.
Save CnrLwlss/f9e1d964882cd8dea67bf1bcb97e90a2 to your computer and use it in GitHub Desktop.
Adventures in plotting running data with R.
distance=seq(0.2,4,0.2)
pace=rep(9,length(distance))
op=par(mfrow=c(2,2))
plot(distance,pace,type="b",main="Sensible")
plot(distance,pace/distance,type="b",main="A bit odd")
plot(distance,pace/(distance^2),type="b",main="WTF?!")
par(op)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment