Categories
Uncategorized

Color Nodes – R

color.nodes<-function(g){
	V(g)[set1]$color <- "#2244CC"
	V(g)[set2]$color <- "#3388EE"
	V(g)[set3]$color <- "#55AADD"
	V(g)[set1]$size <- 4
	V(g)[set2]$size <- 3
	V(g)[set3]$size <- 1
	V(g)[set1]$bcol <- "#000088"
	V(g)[set2]$bcol <- "#1166CC"
	V(g)[set3]$bcol <- NA
}

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s