Skip to content

Instantly share code, notes, and snippets.

@mw55309
Created July 30, 2017 17:27
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 mw55309/49bfbb16265c6b4f4006fa779ee0e39f to your computer and use it in GitHub Desktop.
Save mw55309/49bfbb16265c6b4f4006fa779ee0e39f to your computer and use it in GitHub Desktop.
par(mar=c(2,2,1,1))
plot(sqrt, bty="n", xaxt="n", yaxt="n", xlab="", ylab="")
axis(side=1, at=seq(0,1,by=0.2), las=1, labels=FALSE)
axis(side=2, at=seq(0,1,by=0.2), las=2, labels=FALSE)
axis(side=1, at=seq(0,1,by=0.2), las=1, labels=TRUE, tick=FALSE, line=-0.5, cex.axis=0.8)
axis(side=2, at=seq(0,1,by=0.2), las=2, labels=TRUE, tick=FALSE, line=-0.5, cex.axis=0.8)
axis(side=1, at=0.5, labels="x", tick=FALSE, line=0)
axis(side=2, at=0.5, labels="sqrt", tick=FALSE, line=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment