adm.plot.gen: Function to plot the generations of the simulation

View source: R/spatial_practical.R

adm.plot.genR Documentation

Function to plot the generations of the simulation

Description

Function to plot the generations of the simulation

Usage

adm.plot.gen(
  datf,
  gens = c(0, 1, 2, 3),
  cols = c("red", "blue", "green", "orange")
)

Arguments

datf

data frame with farm coordinates and generation times

gens

vector of generations to be plotted

cols

vector of point colors for each generation (should be same length as gens vector)

Value

plot of the modelled disease spread with a color indicating a different generation


c97sr/learnidd documentation built on Jan. 12, 2025, 4:24 p.m.