Plot features network
plot_features_network(
ko_stat,
map_id = "map00780",
near_pathway = FALSE,
modulelist = NULL,
kos_color = c(Depleted = "seagreen", Enriched = "orange", None = "grey", Significant =
"red2", Pathway = "#80b1d3"),
pathway_label = TRUE,
kos_label = TRUE,
pathway_description = FALSE,
kos_description = FALSE,
str_width = 50,
mark_module = FALSE,
mark_color = NULL,
return_net = FALSE,
...
)
ko_stat result from pvalue2zs
or result of `get_reporter_score`
the pathway or module id
show the near_pathway if any features exist.
NULL or customized modulelist dataframe, must contain "id","K_num","KOs","Description" columns. Take the `KOlist` as example, use custom_modulelist
.
default, c("Depleted"="seagreen","Enriched"="orange","None"="grey","Significant"="red2")
show pathway_label?
show kos_label?
show the pathway description?
show the kos description?
str width
mark the modules?
mark colors, default, c("Depleted"="seagreen","Enriched"="orange","None"="grey","Significant"="red2")
return the network
additional arguments for c_net_plot
network plot
if (requireNamespace("MetaNet")) {
data("reporter_score_res")
plot_features_network(reporter_score_res, map_id = "map05230")
plot_features_network(reporter_score_res, map_id = "map00780", near_pathway = TRUE)
}
#> Loading required namespace: MetaNet