setEdgeSourceArrowShapeDirect(RCytoscape)
setEdgeSourceArrowShapeDirect()所属R语言包:RCytoscape
setEdgeSourceArrowShapeDirect
setEdgeSourceArrowShapeDirect
译者:生物统计家园网 机器人LoveR
描述----------Description----------
In the specified CytoscapeWindow, set the source arrow shape of the specified edge or edges, using one of the supported shapes.
在指定CytoscapeWindow,设置指定的边缘或边缘源箭头的形状,使用支持的形状之一。
用法----------Usage----------
setEdgeSourceArrowShapeDirect(obj, edge.names, new.values)
参数----------Arguments----------
参数:obj
a CytoscapeWindowClass object.
CytoscapeWindowClass对象。
参数:edge.names
one or more cy2-style edge names, String objects.
CY2风格边缘的一个或多个名称,String对象。
参数:new.values
one or more String objects, from the supported set.
一个或多个String对象,从支持集。
值----------Value----------
None.
没有。
作者(S)----------Author(s)----------
Paul Shannon
参见----------See Also----------
cy2.edge.names getArrowShapes setEdgeTargetArrowRule setEdgeSourceArrowShapeDirect
cy2.edge.names getArrowShapes setEdgeTargetArrowRule setEdgeSourceArrowShapeDirect
举例----------Examples----------
cw <- new.CytoscapeWindow ('setEdgeSourceArrowShapeDirect.test', graph=makeSimpleGraph())
displayGraph (cw)
layout (cw, 'jgraph-spring')
redraw (cw)
edges.of.interest = as.character (cy2.edge.names (cw@graph))
supported.arrow.shapes = getArrowShapes (cw)
# first try passing three edges and three arrow shapes[第一次尝试通过三条边和三个箭头形状]
setEdgeSourceArrowShapeDirect (cw, edges.of.interest, supported.arrow.shapes [2:5])
redraw (cw)
Sys.sleep (1)
# now try passing three edges and one arrow.shapes[现在尝试通过三条边和一个arrow.shapes]
setEdgeSourceArrowShapeDirect (cw, edges.of.interest, supported.arrow.shapes [6])
redraw (cw)
# now loop through all of the arrow.shapes[现在循环通过的arrow.shapes的所有]
for (shape in supported.arrow.shapes) {
setEdgeSourceArrowShapeDirect (cw, edges.of.interest, shape)
Sys.sleep (1)
redraw (cw)
}
# restore the default[恢复默认]
setEdgeSourceArrowShapeDirect (cw, edges.of.interest, 'No Arrow')
redraw (cw)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|