plot.intervals {dynamicnetwork}R Documentation

plots valid intervals as a timeline

Description

Plots a timeline view of the timing information attached to edges and verticies of a graph

Usage

plot.intervals(x, time.range = NULL, show.vertex = TRUE, pickSlice = FALSE, showAttribute = NULL, ...)

Arguments

x The graph to plot
time.range time range of the graph to show on the plot (defaults to entire range)
show.vertex should vertex times also be shown on the plot
pickSlice if true, clicking on the timeline will plot the graph for that time point
showAttribute not currently used
... additional plotting arguments

Value

~Describe the value returned If it is a LIST, use

comp1 Description of 'comp1'
comp2 Description of 'comp2'

...

Author(s)

skyebend@skyeome.net

See Also

get.slice.network, plot.dynamic

Examples

dyn <- as.dynamic(network.initialize(10)); #make a dynamic network
dyn<-add.edge.dynamic(dyn,c(1,10),1,2); #slowly and painfully add edges
dyn<-add.edge.dynamic(dyn,c(2,10),2,3); # the 2nd argument is a 2 element
dyn<-add.edge.dynamic(dyn,c(3,10),3,4); # vector giving start and end time
dyn<-add.edge.dynamic(dyn,c(4,10),4,5); # for the edge that is added. 
dyn<-add.edge.dynamic(dyn,c(5,10),5,6);
dyn<-add.edge.dynamic(dyn,c(6,10),6,7);
dyn<-add.edge.dynamic(dyn,c(6,10),7,8);
dyn<-add.edge.dynamic(dyn,c(7,10),8,9);
dyn<-add.edge.dynamic(dyn,c(8,10),9,1);
dyn<-add.edge.dynamic(dyn,c(9,10),10,1);
dyn<-add.edge.dynamic(dyn,c(9,20),10,1);
dyn<-add.edge.dynamic(dyn,c(9,20),10,5);
dyn<-add.edge.dynamic(dyn,c(9,20),10,3);
dyn<-add.edge.dynamic(dyn,c(9,20),10,8);
plot.intervals(dyn);

[Package dynamicnetwork version 0.0-4 Index]