dg.control(label = "dynamicGraph", width = 400, height = 400, w = 6, margin = 100, closeenough = 2, background = "white", transformation = NULL, permitZoom = TRUE, UserMenus = NULL, constrained = FALSE, vertexColor = "red", extraVertexColor = "white", edgeColor = "black", factorVertexColor = "default", factorEdgeColor = "brown", blockEdgeColor = "default", blockColors = NULL, extraEdgeColor = "peru", drawblocks = TRUE, right.to.left = FALSE, nested.blocks = FALSE, overlaying = TRUE, fixedFactorPositions = FALSE, diagonal = TRUE, N = 3, vertexClasses = validVertexClasses(), factorClasses = validFactorClasses(), edgeClasses = validEdgeClasses(), viewClasses = validViewClasses(), drawBlockFrame = TRUE, drawBlockBackground = FALSE, useNamesForLabels = TRUE, namesOnEdges = TRUE, updateEdgeLabels = TRUE, enterLeaveUpdate = TRUE, updateAllViews = TRUE, saveTkReferences = TRUE, saveFunctions = TRUE, returnNull = FALSE, hasMethods = TRUE, variableFrame = TRUE, debug.strata = FALSE, debug.edges = FALSE, debug.position = FALSE, debug.update = FALSE, ...)
dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
)radius
of the vertices. Send as argument to the
draw
method for vertices, and edges are shortened
by the quantity in each end.
(dynamicGraphMain
)dynamicGraphMain
)tkcanvas
.
(dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
(by newVertex
).
The colors of the vertices of vertexList
are
given in this list. vertexColor
is given as
argument to the draw
method of vertices, but this
argument are by default not used in the draw method. vertexColor
, but for the vertices of
extraList
. edgeColor
is similar to vertexColor
. factorVertexColor
is similar to
vertexColor
.
If factorVertexColor
is "default" then
the color of a factor vertex will depend on the
type of the generator of the factor. factorEdgeColor
is similar to edgeColor
. blockEdgeColor
is similar to edgeColor
.
The two colors are used for respectively edges
between two blocks and for edges between blocks
and vertices. vertexColor
: Only used when creating
new blocks, else the colors set in blockList
and blockTree
are used. extraEdgeColor
is similar to edgeColor
. drawblocks
is set to FALSE,
then the blocks are not drawn. The strata of the vertices are
then not updated when the vertices are moved.
(simpleGraphToGraph
)right.to.left
is set to TRUE
then the explanatory blocks are drawn to the right.
See setBlocks
.
(simpleGraphToGraph
)nested.blocks
is set to TRUE
then the blocks are drawn nested. See setBlocks
.
(simpleGraphToGraph
)overlaying
is set to FALSE
then children of a block are not drawn inside the block.
See setTreeBlocks
.
(simpleGraphToGraph
)fixedFactorPositions
is set
to TRUE then the factor vertices will not follow the moved vertices.
(simpleGraphToGraph
)diagonal
is set to TRUE
then the extra vertices are by default positioned along a diagonal.
(simpleGraphToGraph
)N
> 1, of coordinates for the positions of the
vertices and block corners.
(simpleGraphToGraph
)validVertexClasses
,
or extension of this matrix. Used when creating
new vertices in dynamicGraphMain
. validFactorClasses
,
or extension of this matrix. Used when creating
new factor vertices in dynamicGraphMain
. validEdgeClasses
,
or extension of this matrix. Used when creating
new edges in dynamicGraphMain
. validViewClasses
,
or extension of this matrix. Used when creating
new views in dynamicGraphMain
. dynamicGraphMain
)block canvas
is
drawn, with color set by blockColors
.
(dynamicGraphMain
)useNamesForLabels
is TRUE
then names are sued for labels.
(dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
)dg.graphedges-class
for an example of a user specified menu.
(dynamicGraphMain
)constrained
is then
the vertices can not be dragged out of blocks. object
should have the methods
modifyModel
and testEdge
.
(I do not know why the R-function
hasMethod
does not
work on objects
(defined outside the package
dynamicGraph
)
inside dynamicGraphMain
).
(dynamicGraphMain
)saveTkReferences
is TRUE
then references to Tk-variables
of the dynamic graph window are saved
in environments in the returned object
of dynamicGraphMain
(if not returnNull
is TRUE).
(dynamicGraphMain
) saveFunctions
is TRUE
then draw and update functions of
the dynamic graph window are saved
in environments in the returned object
of dynamicGraphMain
(if not returnNull
is TRUE).
(dynamicGraphMain
) returnNull
is TRUE then NULL is returned.
(dynamicGraphMain
)dynamicGraphMain
)variableFrame
is TRUE the a frame/box/panel
for variables is made left in the graph window.
(dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
)dynamicGraphMain
)returnLink
. dynamicGraphMain
and DynamicGraph
require(dynamicGraph)
str(dg.control())
Run the code above in your browser using DataLab