Skip to content

Instantly share code, notes, and snippets.

@Ddedalus
Created June 18, 2018 12:20
Show Gist options
  • Select an option

  • Save Ddedalus/fe3aad359c88ce1c171028353e987ffa to your computer and use it in GitHub Desktop.

Select an option

Save Ddedalus/fe3aad359c88ce1c171028353e987ffa to your computer and use it in GitHub Desktop.
Label points on a plot
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