scagGraph(RnavGraph)
scagGraph()所属R语言包:RnavGraph
Create a list of graphs, given the scagnostics edge weights
创建一个列表,图表,给出了scagnostics边的权重
译者:生物统计家园网 机器人LoveR
描述----------Description----------
scagGraph is useful to turn the output of scagEdgeWeights into a list of graphs.
scagGraph是有用的转输出scagEdgeWeights成一个列表的图表。
用法----------Usage----------
scagGraph(edgeWeights, topFrac = 0.2)
参数----------Arguments----------
参数:edgeWeights
List returned by the scagEdgeWeights function.
scagEdgeWeights函数返回的列表。
参数:topFrac
Keep the nodes with the topFrac fraction of the scagnostic weights.
保留节点的topFrac部分的scagnostic权重。
值----------Value----------
graph object or a list of graph objects.
图形对象或图形对象的列表。
(作者)----------Author(s)----------
Adrian Waddell and R. Wayne Oldford
参见----------See Also----------
navGraph, scagNav, scagEdgeWeights
navGraph,scagNav,scagEdgeWeights
实例----------Examples----------
data(olive)
ng.olive <- ng_data(name = "Olive",
data = olive[,-c(1,2)],
shortnames = c("p1","p2","s","ol","l1","l2","a","e"),
group = as.numeric(olive$Area)+1
)
edgeWts <- scagEdgeWeights(data = ng.olive,
scags = c("Clumpy", "Skinny"))
G1 <- scagGraph(edgeWts, topFrac = 0.2)
edgeWts <- scagEdgeWeights(data = ng.olive,
scags = c("Clumpy", "Skinny"),
combineFn = max)
G2 <- scagGraph(edgeWts, topFrac = 0.1)
## Now you can start a navGraph session[#现在你可以开始navGraph会]
nav <- navGraph(ng.olive, G1)
nav <- navGraph(ng.olive, G2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|