plot.diffnet: Visualize netinf output

Description Usage Arguments Details Value Examples

Description

Visualize the inferred diffusion network or the marginal gain in fit obtained by addition of each edge.

Usage

1
2
## S3 method for class 'diffnet'
plot(x, type = "network", ...)

Arguments

x

object of class diffnet to be plotted.

type

character, one of c("network", "improvement", "p-value") indicating if the inferred diffusion network, the improvement for each edge or the p-value from the vuong test for each edge should be visualized .

...

additional arguments.

Details

If 'type = improvement' a ggplot object is returned. It can be modified like any other ggplot. See the ggplot documentation and the examples in plot.cascade.

Value

A ggplot plot object if type = "improvement" otherwise an igraph plot.

Examples

1
2
3
4
5
6
7
8
## Not run: 
 data(cascades)
 res <- netinf(cascades, quiet = TRUE)
 plot(res, type = "network")
 plot(res, type = "improvement")
 plot(res, type = "p-value")

## End(Not run)

desmarais-lab/NetworkInference documentation built on May 15, 2019, 5:05 a.m.