plot_signif | R Documentation |
Plot histograms for randomizations
plot_signif(x, colors = c("plum", "tomato4"), plotit = T)
x |
An object of class |
colors |
The fill colors of the histograms. |
plotit |
Also show the plots? |
Use ggplot to plot two histograms for the values of the map equation L and the number of modules. Dashed line is the observed value. Because returned objects are ggplot objects, they can be modified.
A list with objecst of class ggplot
:
L_plot: Histogram for the map equation
m_plot: Histogram for the number of modules
ggplot2, infomap_monolayer
## Not run:
network_object <- create_monolayer_network(bipartite::memmott1999,
bipartite = TRUE, directed = FALSE, group_names = c('Animals','Plants'))
infomap_object <- run_infomap_monolayer(network_object,
infomap_executable='Infomap',
flow_model = 'undirected',
silent=TRUE, trials=20, two_level=TRUE, seed=123,
signif = TRUE, shuff_method = 'r00', nsim = 50)
#get plots and plot them
x <- plot_signif(infomap_object, plotit = TRUE)
# Can modify the plots with ggplot2
x$L_plot+
theme_bw()+
theme(legend.position='none',
axis.text = element_text(size=20),
axis.title = element_text(size=20))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.