AgTextLabel-class(Rgraphviz)
AgTextLabel-class()所属R语言包:Rgraphviz
Class "AgTextLabel": Represents a graphviz text label
类“AgTextLabel”:表示一个graphviz的文本标签
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This class is used to represent the textlabel object in
这个类是用来代表的textLabel对象
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("AgTextLabel", ...).
创建对象可以通过电话的形式new("AgTextLabel", ...)。
插槽----------Slots----------
labelText: Object of class "character" The
labelText类"character":对象
labelLoc: Object of class "xyPoint" The
labelLoc类"xyPoint":对象
labelJust: Object of class "character" The
labelJust类"character":对象
labelWidth: Object of class "integer" The width
labelWidth:Object类的"integer"宽度
labelColor: Object of class "character" The
labelColor类"character":对象
labelFontsize: Object of class "numeric" The
labelFontsize类"numeric":对象
方法----------Methods----------
labelText Retrieves the labelText slot
LabelText的检索LabelText的插槽
labelLoc Retrieves the labelLoc slot
labelLoc检索labelLoc插槽
labelJust Retrieves the labelJust slot
labelJust检索labelJust插槽
labelWidth Retrieves the labelWidth slot
labelWidth检索labelWidth插槽
labelColor Retrieves the labelColor slot
labelColor检索labelColor插槽
labelFontsize Retrieves the labelFontsize slot
labelFontsize检索labelFontsize插槽
作者(S)----------Author(s)----------
Jeff Gentry
参见----------See Also----------
AgEdge-class, AgNode-class
AgEdge-class,AgNode-class
举例----------Examples----------
V <- letters[1:10]
M <- 1:4
g1 <- randomGraph(V, M, .2)
## Make the labels be the edge weights. This code is from the vignette[#标签是边权重。此代码是从的小插曲]
eAttrs <- list()
ew <- edgeWeights(g1)
lw <- unlist(unlist(ew))
toRemove <- removedEdges(g1)
lw <- lw[-toRemove]
names(lw) <- edgeNames(g1)
eAttrs$label <- lw
z <- agopen(g1,"foo", edgeAttrs=eAttrs)
x <- AgEdge(z) ## list of AgEdge objects[#AgEdge对象名单]
x[[1]] ## AgEdge[#AgEdge]
a <- txtLabel(x[[1]])
a ## txtLabel object[#txtLabel对象]
labelText(a)
labelLoc(a)
labelJust(a)
labelWidth(a)
labelColor(a)
labelFontsize(a)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|