popSizesPlot: Constructs a plot of population size versus time from the...

View source: R/popSizesPlot.R

popSizesPlotR Documentation

Constructs a plot of population size versus time from the projection of Leslie matrix.

Description

Constructs a plot of population size versus time from the projection of Leslie matrix using pop.projection from the popbio package.

Usage

popSizesPlot(
  object,
  use.log = FALSE,
  xlab = "Time",
  ylab = "Population Size",
  type = "l",
  lwd = 2,
  add = FALSE,
  ...
)

Arguments

object

An object saved from pop.projection from the popbio package.

use.log

A logical that indicates if the population sizes should be logged before plotting.

xlab

A string for labelling the x-axis.

ylab

A string for labelling the y-axis.

type

A type of plot – use l for lines, p for points, and b for both.

lwd

A numeric that indicates the line width to use.

add

A logical that indicates whether the data should be added to a currently existing plot.

...

Extra arguments to be sent to the default plot routine.

Value

A plot of either population sizes or log population sizes versus time.

Note

This function is meant to work with an object saved from pop.projection() in the popbio package. It is not a general function for plotting population size versus time.

Author(s)

Derek H. Ogle, dogle@northland.edu

See Also

pop.projection and stage.vector.plot in popbio.

Examples

## ONLY RUN IN INTERACTIVE MODE
if (interactive()) {

require(popbio)
example(pop.projection)
popSizesPlot(p)

} ## END IF INTERACTIVE MODE


droglenc/FSAmisc documentation built on Jan. 8, 2023, 12:59 a.m.