Created
June 18, 2018 12:20
-
-
Save Ddedalus/fe3aad359c88ce1c171028353e987ffa to your computer and use it in GitHub Desktop.
Label points on a plot
This file contains hidden or 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
| plot(sapply(nets, gorder), sapply(nets, gsize), | |
| xlab="vertices", ylab="edges") | |
| text(sapply(nets, gorder), sapply(nets, gsize), labels = netNames, pos = c(3, 4, 4, 4, 4, 2, 3, 2, 3)) | |
| ######### pos: vector of label locations: 1-below, 2-left, 3-above, 4-right; may be just a single number | |
| ######### the same ploting series must be passed to the plot and text. May use with(df, ...) for convenience |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment