freqplot: Frequency plot for a lagphase fit

View source: R/freqplot.R

freqplotR Documentation

Frequency plot for a lagphase fit

Description

Frequency plot for a lagphase fit

Usage

freqplot(
  fit1,
  fit2 = NULL,
  fit3 = NULL,
  fit4 = NULL,
  xlab = "Year",
  ylab = "Frequency",
  main = fit1$name,
  cols = 2:5,
  ...
)

Arguments

fit1, fit2, fit3, fit4

"lagphase" fit objects to plot

xlab

Label for the $x$-axis

ylab

Label for the $y$-axis

main

Title of the plot

cols

Colors to be used to draw the lines

...

(optional) parameters to pass to plot

Value

Produces a plot of observed and predicted frequencies for the species against year

Examples

Species = unique(fdata$Species) #List of all species
fit1 = lagfit(fdata, yeardata, species=Species[1])
freqplot(fit1$fit)

PopulationGrowthR documentation built on May 10, 2022, 5:11 p.m.