arcdiagram icon indicating copy to clipboard operation
arcdiagram copied to clipboard

Arc diagram with accepting singleton vertices

Open etheleon opened this issue 10 years ago • 2 comments

Previously arcplot only generates a node if its reflected in the edgelist but this leaves out singleton nodes if present in the graph. Proposed new arguement vertices will accept a vector of vertex names corresponding with that in the edgelist. Similar to how igraph's graph.data.frame works

etheleon avatar Mar 27 '14 13:03 etheleon

I added your suggested changes. Would you mind sharing an example of a graph with singleton nodes and the use of the argument vertices?

gastonstat avatar Mar 27 '14 17:03 gastonstat

No prob heres the dput output for the igraph object structure(list(15, FALSE, c(13, 13, 13, 13, 14, 13, 13, 13, 13, 13, 8, 8, 8, 8, 11, 6, 12, 9, 14, 5, 5, 5, 7, 11, 9, 14, 6, 6, 6, 11, 12, 12, 14, 9, 9, 9, 10, 11, 14, 14, 14, 4, 4, 1, 2, 11, 11), c(5, 6, 12, 9, 13, 4, 0, 1, 7, 11, 6, 1, 2, 7, 8, 5, 5, 5, 5, 4, 0, 1, 5, 5, 6, 6, 4, 0, 1, 6, 7, 11, 9, 4, 0, 1, 9, 9, 4, 0, 1, 0, 1, 0, 1, 7, 10), c(43, 44, 41, 42, 20, 21, 19, 27, 28, 26, 15, 22, 11, 12, 10, 13, 34, 35, 33, 17, 24, 36, 23, 29, 45, 14, 37, 46, 16, 30, 31, 6, 7, 5, 0, 1, 8, 3, 9, 2, 39, 40, 38, 18, 25, 32, 4), c(43, 41, 20, 27, 34, 6, 39, 44, 42, 21, 28, 11, 35, 7, 40, 12, 19, 26, 33, 5, 38, 15, 22, 17, 23, 16, 0, 18, 10, 24, 29, 1, 25, 13, 45, 30, 8, 14, 36, 37, 3, 32, 46, 31, 9, 2, 4), c(0, 0, 1, 2, 2, 4, 7, 11, 12, 16, 21, 22, 28, 31, 40, 47), c(0, 7, 15, 16, 16, 21, 28, 33, 37, 38, 42, 43, 45, 46, 47, 47), list(c(1, 0, 1), structure(list(), .Names = character(0)), structure(list(name = c("1-100", "101-200", "201-300", "301-400", "401-500", "501-600", "601-700", "701-800", "801-900", "901-1000", "1001-1100", "1101-1200", "1201-1300", "1301-1400", "1401-1500" ), readnum = c(2L, 3L, 2L, 2L, 5L, 16L, 14L, 12L, 22L, 14L, 7L, 29L, 30L, 30L, 12L)), .Names = c("name", "readnum")), structure(list(shared = c("6", "1", "2", "1", "1", "1", "1", "1", "3", "3", "1", "1", "2", "1", "1", "2", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "2", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1", "1")), .Names = "shared"))), class = "igraph")

etheleon avatar Mar 28 '14 03:03 etheleon