plot.diffnet {NetworkInference} | R Documentation |
Visualize netinf output
Description
Visualize the inferred diffusion network or the marginal gain in fit obtained by addition of each edge.
Usage
## S3 method for class 'diffnet'
plot(x, type = "network", ...)
Arguments
x |
object of class diffnet to be plotted. |
type |
character, one of |
... |
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
## 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)
[Package NetworkInference version 1.2.4 Index]