plot_simulated_graph: Plot Graph from Continuous-Time Movement Descriptions

View source: R/plot_simulated_graph.R

plot_simulated_graphR Documentation

Plot Graph from Continuous-Time Movement Descriptions

Description

Plot a graph from modulr graphing functions. Optional seed can be set to facilitate side-by-side comparison with plot_sampled_graph.

Usage

plot_simulated_graph(
  g,
  vertex.size = 40,
  mark.expand = 25,
  vertex.label = NA,
  vertex.label.cex = 1.5,
  title = "",
  seed = NULL
)

Arguments

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

Value

a plot of the igraph object

Examples


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)


gavincotterill/modulr documentation built on Nov. 30, 2022, 11:15 p.m.