Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

makeNodeAttrs

make a list of character vectors that can be used as a value for the nodeAttrs argument in agopen


Description

make a list of character vectors that can be used as a value for the nodeAttrs argument in agopen

Usage

makeNodeAttrs(g, label = nodes(g), shape = "ellipse",
              fillcolor = "#e0e0e0", ...)

Arguments

g

graph

label

character of length either 1 or numnodes(g). If the length is 1, the value is recycled.

shape

character of length either 1 or numnodes(g)

fillcolor

character of length either 1 or numnodes(g)

...

further named arguments that are character vectors of length either 1 or numNodes(g)

Details

This function is trivial but convenient.

Value

A list of named character vectors, each of which with length numNodes(g).

Author(s)

Wolfgang Huber <huber@ebi.ac.uk>

Examples

g <- randomEGraph(letters[1:10], p=0.2)
makeNodeAttrs(g)

Rgraphviz

Provides plotting capabilities for R graph objects

v2.34.0
EPL
Authors
Kasper Daniel Hansen [cre, aut], Jeff Gentry [aut], Li Long [aut], Robert Gentleman [aut], Seth Falcon [aut], Florian Hahne [aut], Deepayan Sarkar [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.