Learn R Programming

CpDyna (version 1.0)

ModPlot: Function to plot the results.

Description

Function to plot the results.

Usage

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

Run this code
# NOT RUN {
    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")
  
# }

Run the code above in your browser using DataLab