Skip to content

Instantly share code, notes, and snippets.

@druedin

druedin/missing.R

Last active Dec 11, 2015
Embed
What would you like to do?
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