| plot.diffnet | R Documentation |
Visualize the inferred diffusion network or the marginal gain in fit obtained by addition of each edge.
## S3 method for class 'diffnet'
plot(x, type = "network", ...)
x |
object of class diffnet to be plotted. |
type |
character, one of |
... |
additional arguments. |
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.
A ggplot plot object if type = "improvement" otherwise an
igraph plot.
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.