Skip to content

Instantly share code, notes, and snippets.

@druedin
Last active December 11, 2015 08:39
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save druedin/4574883 to your computer and use it in GitHub Desktop.
Plot with missing values
miss <- !is.na(variable.name[country=="UK")
plot(which(miss), variable.name[country=="UK" & miss], col="red", type="b", lwd=2, axes=FALSE, xlim=c(1,16))
axis(2)
axis(1,at=c(1,6,11,16), labels=c("1995","2000","2005","2010"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment