We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to add text to the edges in geom_net using the very intuitive geom_net api?
geom_net
I do not see anything in the documentation that talks to this
library(geomnet) library(ggplot2) x <- structure(list(from = c("a", "b", "d", "f", "g", "e", "c", "i", "e", "h", "i", "i", "j", "j"), to = c("", "", "", "", "", "a", "b", "c", "d", "e", "f", "g", "h", "i"), edge_val = c(NA, NA, NA, NA, NA, 1.6, 2.25, 1.75, 0.95, 1.8, 3.2, 2.6, 2.95, 2.45)), .Names = c("from", "to", "edge_val"), class = "data.frame", row.names = c(NA, -14L )) ggplot(x, aes(from_id = from, to_id = to, linewidth = edge_val)) + geom_net(layout.alg = "fruchtermanreingold", labelgeom = "text",repel = TRUE, size = 4, labelon = TRUE, vjust = -1, ecolour = "grey80", directed = FALSE, fontsize = 4, ealpha = 0.5) + theme_net()
The ideal output would be something that looks like:
The text was updated successfully, but these errors were encountered:
Implementation of this can be found here: https://stackoverflow.com/questions/52356514/label-edges-in-geom-net-in-r/52453249#52453249
Sorry, something went wrong.
No branches or pull requests
Is it possible to add text to the edges in geom_net using the very intuitive
geom_net
api?I do not see anything in the documentation that talks to this
The ideal output would be something that looks like:
The text was updated successfully, but these errors were encountered: