powered by
colorNodes(g, nodeAss, pal, attgen)
example(randomGraph) nn = nodes(g1) x = runif(length(nn)) names(x) = nn h1 = colorNodes(g1, x, colorRampPalette(brewer.pal(9, "Blues"))(length(nn)), pwayRendAttrs) h1
Run the code above in your browser using DataLab