Last active
December 11, 2015 08:39
-
-
Save druedin/4574883 to your computer and use it in GitHub Desktop.
Plot with missing values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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