Description Usage Arguments Value Slots Extends Methods Note Author(s) Examples
Return a list of vertices of classes containing the class dg.Vertex.
Objects can be created by calls of the form new("dg.VertexList", ...).
1 2 3 4 5 | returnVertexList(names, labels = NULL, types = NULL,
strata = NULL, line = FALSE, N = 3,
colors = ifelse(types == "TextVertex",
"FloralWhite", "DarkRed"),
vertexClasses = validVertexClasses())
|
names |
Vector of text strings with the |
labels |
Vector of text strings with the |
types |
Vector of text strings with the |
strata |
Vector of integers with the |
line |
Logical, if TRUE then the vertices are positioned on a
|
N |
Integer, |
colors |
Vector of text strings with |
vertexClasses |
The valid |
A list of vertices of classes containing the class dg.Vertex.
.Data:Object of class "list".
Class "dg.NodeList", directly.
Class "dg.list", directly.
Class "list", from data part.
Class "vector", by class "dg.NodeList".
Class "vector", by class "dg.list".
Class "vector", by class "list".
signature(.Object = "dg.VertexList"): ...
The methods
Names,
Names<-,
Colors,
Colors<-,
Labels,
Labels<-,
LabelPositions,
LabelPositions<-,
Positions,
Positions<-,
Strata,
Strata<-,
Indices, and
asDataFrame
are available for vertex lists.
Jens Henrik Badsberg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | vertices <- returnVertexList(c("A", "B", "C", "D"),
labels = c("OrdinalVertex", "TextVertex",
"ContinuousVertex", "DiscreteVertex"),
types = c("Ordinal", "TextVertex",
"Continuous", "Discrete"), N = 2)
vertices <- new("dg.VertexList", names = c("A", "B", "C", "D"),
labels = c("OrdinalVertex", "TextVertex",
"ContinuousVertex", "DiscreteVertex"),
types = c("Ordinal", "TextVertex",
"Continuous", "Discrete"), N = 2)
Names(vertices)
Colors(vertices)
Labels(vertices)
LabelPositions(vertices)
Positions(vertices)
Strata(vertices)
Indices(vertices)
Names(vertices) <- c("a", "b", "c", "d")
Colors(vertices) <- rep("Blue", 4)
Labels(vertices) <- c("A", "B", "C", "D")
LabelPositions(vertices) <- matrix(rep(0, 12), ncol = 3)
Positions(vertices) <- matrix(rep(0, 12), ncol = 3)
Strata(vertices) <- rep(1, 4)
Names(vertices)
Colors(vertices)
Labels(vertices)
LabelPositions(vertices)
Positions(vertices)
Strata(vertices)
Indices(vertices)
asDataFrame(vertices)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.