get_association_network: Get and/or plot hyena association networks

View source: R/get_association_network.R

get_association_networkR Documentation

Get and/or plot hyena association networks

Description

Creates, plots, and returns association networks for specified clans

Usage

get_association_network(
  clan,
  start,
  end,
  network_duration = "6 months",
  return_nets = F,
  plot_nets = F,
  output_pdf_pathname = NULL
)

Arguments

clan

One (or more) clan names, supplied as a character vector.

start

Start date for desired networks

end

End date for desired networks

network_duration

Duration of data for each network. If NULL, all data between start and end are lumped into one network.

return_nets

Should networks be output?

plot_nets

Should networks be plotted?

If

plot_nets is TRUE, path and filename of pdf where plots are output

Value

Returns weighted, undirected networks for each time period

Examples

get_association_network(clan = c('serena.s', 'serena.n', 'happy.zebra'), start = '2009-01-01', end = '2025-01-01', network_duration = '12 months', return_nets = F, plot_nets = T, output_pdf_pathname = '~/Desktop/serena_nets.pdf')


MaraHyenaProject/hyenatools documentation built on Jan. 30, 2025, 5:10 p.m.