\name{setNodeLabelRule} \alias{setNodeLabelRule} \alias{setNodeLabelRule,CytoscapeWindowClass-method} \title{setNodeLabelRule} \description{ Specify the node attribute to be used as the label for each node. Non-character attributes are converted to strings before they are used as labels.} \usage{ setNodeLabelRule(obj, node.attribute.name) } \arguments{ \item{obj}{a \code{CytoscapeWindowClass} object. } \item{node.attribute.name}{the node attribute whose values will, when this rule is applied, determine the label on each node.} } \value{ None. } \author{Paul Shannon} \examples{ cw <- new.CytoscapeWindow ('setNodeLabelRule.test', graph=makeSimpleGraph()) displayGraph (cw) layoutNetwork(cw, 'jgraph-spring') setNodeLabelRule (cw, 'label') redraw (cw) setNodeLabelRule (cw, 'type') redraw (cw) setNodeLabelRule (cw, 'lfc') redraw (cw) setNodeLabelRule (cw, 'count') redraw (cw) setNodeLabelRule (cw, 'label') redraw (cw) } \keyword{graph}