|
From: | Meenakshi Parameshwaran |
Subject: | Re: [igraph] changing vertex shape according to vertex characteristics |
Date: | Wed, 3 Apr 2013 21:48:29 +0100 |
> #set shape of vertex attribute according to genderIf you have an NA value somewhere in the female4 vector, this will introduce NA values in the shape vector as well. E.g.:
> V(graph1)$shape <- ifelse(female4 == 1, "circle", "square")
> female4 <- c(1, 0, NA)
> ifelse(female4 == 1, "circle", "square")[1] "circle" "square" NA
So, the solution is to get rid of the NA values from your female4 vector.
--
T.
_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help
[Prev in Thread] | Current Thread | [Next in Thread] |