View source: R/plot_simulated_graph.R
plot_simulated_graph | R Documentation |
Plot a graph from modulr graphing functions. Optional seed can be set to facilitate side-by-side comparison with plot_sampled_graph.
plot_simulated_graph( g, vertex.size = 40, mark.expand = 25, vertex.label = NA, vertex.label.cex = 1.5, title = "", seed = NULL )
g |
an igraph object output from simulate_graph() or graph_from_schedule() |
vertex.size |
node size in plot |
mark.expand |
padding of polygon denoting modules around nodes |
vertex.label |
label for graph vertices |
vertex.label.cex |
size for vertex labels |
title |
plot title |
seed |
optional integer value to set.seed() within function and preserve node layout when plotting sampled and simulated graphs |
a plot of the igraph object
g <- simulate_graph(n_animals = 25, n_groups = 4, time_to_leave = 5, time_to_return = 2, travel_time = c(0.01, 0.2), samples_per_day = 1, sampling_duration = 7) plot_simulated_graph(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.