ModPlot: Function to plot the results.

Description Usage Arguments Examples

View source: R/ModPlot.R

Description

Function to plot the results.

Usage

1
ModPlot(Gnu, res, type = "graphs")

Arguments

Gnu

A (3 x Nb.events) matrix. The first row contains the ordered interaction times, the second row the source nodes, the third row the destination nodes. Currently, only undirected interactions are taken into account. Thus, for each interaction time, the source node is stricly smaller than the destination node. No self loops allowed.

res

ModFit function's output.

type

String that indicates the type of graph to be plotted. It must be either "graphs" or "adjacency".

Examples

1
2
3
4
5
6
7
    data("Gnu")
    Th <- 10  # final time T
    step <- 0.1
    myptn <- seq(from = step, to = Th, by = step)
    res <- ModFit(Gnu = Gnu, kmin = 3, kmax = 3, MinimalPartition = FALSE, custom_partition = myptn)
  	ModPlot(Gnu, res, type = "adjacency")
  

CpDyna documentation built on Dec. 3, 2018, 5:04 p.m.