plot_dynamic_networks {inferCSN} | R Documentation |
plot_dynamic_networks
Description
plot_dynamic_networks
Usage
plot_dynamic_networks(
network_table,
celltypes_order,
ntop = 10,
width = 6,
height = 6,
seed = 2024,
theme_type = "theme_void",
plot_type = "ggplot",
layout = "fruchtermanreingold",
nrow = 2,
title = NULL,
figure_save = FALSE,
figure_name = NULL
)
Arguments
network_table |
network_table |
celltypes_order |
celltypes_order |
ntop |
ntop |
width |
width |
height |
height |
seed |
seed |
theme_type |
theme_type |
plot_type |
plot_type |
layout |
layout |
nrow |
nrow |
title |
The title of figure. |
figure_save |
figure_save |
figure_name |
figure_name |
Value
ggplot object
Examples
data("example_matrix")
network <- inferCSN(example_matrix)[1:100, ]
network$celltype <- c(
rep("cluster5", 20),
rep("cluster1", 20),
rep("cluster3", 20),
rep("cluster2", 20),
rep("cluster6", 20)
)
celltypes_order <- c(
"cluster5", "cluster3",
"cluster2", "cluster1",
"cluster6"
)
plot_dynamic_networks(
network,
celltypes_order = celltypes_order
)
plot_dynamic_networks(
network,
celltypes_order = celltypes_order[1:3]
)
## Not run:
# If setting `plot_type = "animate"` to plot and save `gif` figure,
# please install `gifski` package first.
plot_dynamic_networks(
network,
celltypes_order = celltypes_order,
plot_type = "animate"
)
## End(Not run)
plot_dynamic_networks(
network,
celltypes_order = celltypes_order,
plot_type = "ggplotly"
)
[Package inferCSN version 1.0.5 Index]