A wrapper to dynamicGraphMain
for adding models
and views, represented by a simple dynamic graph,
to an existing dynamicGraph
.
( The function was a part of the deprecated interface function
DynamicGraph
: Use the method dg
on object of dg.simple.graph-class
in stead. )
The wrapper is depricated: use the methods dg
,
addModel
, addView
,
replaceModel
, or replaceView
.
wDG(sdg = NULL, object = NULL, frameModels = NULL, frameViews = NULL, graphWindow = NULL, dg = NULL, addModel = FALSE, addView = FALSE, overwrite = FALSE, returnNewMaster = FALSE, redraw = FALSE, control = dg.control(...), ...)
dg.simple.graph-class
object
, or NULL,
see dg.Model-class
. DynamicGraph-class
.
frameModels
is the object for a dataset
(defining vertics and blocks)
and the models on that dataset. DynamicGraphModel-class
.
frameViews
is the object for a model
and the views of that model. DynamicGraphView-class
.
graphWindow
is the object for a view of a model. dg.graphedges-class
.
If this agrument is given then edges and factors are
extracted from the argument. Similar with an optional
argument Arguments
. addModel
then a model is added
to the argument frameModels
, and a view of
the model is drawn.
If the argument overwrite
is TRUE and
the argument graphWindow
is given
then the model of graphWindow
is replaced
by the model argument object
.
If the argument overwrite
is TRUE and
the argument frameViews
is given
then the model of frame
\-Views is replaced
by the model argument object
.
addView
then a view of type set
by the argument viewType
for the model of the argument frameViews
is added. addModel
.
The argument returnLink
must be set to TRUE
to overwrite a view. frameModels
is 'redrawn'.
New instances of the windows are made. addModel
, using the code of redraw
.
As redraw
, but the windows of
frameModels
exists,
and a new model is added. DynamicGraph
and
dynamicGraphMain
, see
dg.control
. dynamicGraphMain
. dynamicGraphMain
.
require(tcltk); require(dynamicGraph)
Run the code above in your browser using DataLab