Plot network graph.
plot_network_graph(object, ...)
# S4 method for class 'CSNObject'
plot_network_graph(
object,
network = DefaultNetwork(object),
celltypes = NULL,
graph = "module_graph",
layout = "umap",
edge_width = 0.2,
edge_color = c(`-1` = "darkgrey", `1` = "orange"),
node_color = pals::magma(100),
node_size = c(1, 5),
text_size = 10,
color_nodes = TRUE,
label_nodes = TRUE,
color_edges = TRUE,
...
)
The input data, a csn object.
Arguments for other methods
Name of the network to use.
Celltypes to plot.
If NULL
, all celltypes are plotted.
Name of the graph.
Layout for the graph. Can be 'umap' or any force-directed layout
implemented in ggraph
Edge width.
Edge color.
Node color or color gradient.
Node size range.
Font size for labels.
Logical, Whether to color nodes by centrality.
Logical, Whether to label nodes with gene name.
Logical, Whether to color edges by direction.
A CSNObject object.