| plot.cograph_motifs | R Documentation |
Visualize motif frequencies and their statistical significance.
## S3 method for class 'cograph_motifs'
plot(
x,
type = c("bar", "heatmap", "network"),
show_nonsig = FALSE,
top_n = NULL,
colors = c("#2166AC", "#F7F7F7", "#B2182B"),
combined = TRUE,
...
)
x |
A |
type |
Plot type:
|
show_nonsig |
Show non-significant motifs? Default FALSE. |
top_n |
Show only top N motifs by |z-score|. Default NULL (all). |
colors |
Three-element color vector for under-represented, neutral, and
over-represented motifs. Default |
combined |
Logical: when TRUE (default) and |
... |
Additional arguments passed to plotting functions |
A ggplot2 object (invisibly)
motif_census() for the analysis that produces this object
Other motifs:
extract_motifs(),
extract_triads(),
get_edge_list(),
motif_census(),
motifs(),
plot.cograph_motif_analysis(),
subgraphs(),
triad_census()
mat <- matrix(sample(0:1, 100, replace = TRUE, prob = c(0.7, 0.3)), 10, 10)
diag(mat) <- 0
m <- motif_census(mat, directed = TRUE, n_random = 50)
plot(m)
plot(m, type = "network")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.