View source: R/render-ggplot.R
| sn_ggplot | R Documentation |
Builds a ggplot object of a network that can be modified and combined with
other ggplot2 layers. Nodes are points with labels and edges are straight
segments, with arrows when the network is directed. Edges with positive
weights are green and edges with negative weights are red. The plot uses
fixed default aesthetics and does not apply styling set with the
sn_* functions or a theme.
sn_ggplot(network, title = NULL)
network |
A |
title |
Optional plot title. |
A ggplot object.
sn_ggplot(regulation_net, title = "Regulation")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.