igraph 的新手。我想用另一个参数定义顶点颜色,最好是连续颜色(想想热图或灰度)。
clusters_only <- as.character(temp_df$SeqID)
v_names <- data.frame(c(unique_order, as.character(temp_df$SeqID)))
graph_order <- graph.data.frame(temp_df, directed = FALSE, vertices = v_names)
V(graph_order)[clusters_only]$size <- ? #continuous colour based on variable in temp_df
有任何想法吗?
非常感激。