abundanceDistributionPlot: abundanceDistributionPlot

View source: R/abundanceDistributionPlot.r

abundanceDistributionPlotR Documentation

abundanceDistributionPlot

Description

uses the output of nefsc.analysis or dfo.rv.analysis to examine the relationship between design weighted area occupied and abundance

Usage

abundanceDistributionPlot(
  x,
  m = NULL,
  fp = project.figuredirectory("bio.lobster"),
  fname
)

Arguments

x

:the output file from nefsc.analysis or dfo.rv.analysis

m

:the output of a loglinear model of abundance and distribution.

fp

: file path for saving

fn

: file name, needs to include .pdf as this is currently only setup to make pdf files.

Value

makes two plots of design weighted area occupied against N.yst and the time series of anomalies from the supplied log linear plot

Author(s)

Adam Cook, Adam.Cook@dfo-mpo.gc.ca

Examples

require(bio.lobster)
aout= nefsc.analysis(DS='stratified.estimates.redo',p=p)
 aout$ln.n.Yst = log(aout$n.Yst)
 aout$ln.dwao = log(aout$dwao)
 model = lm(ln.dwao~ln.n.Yst,data=aout)
	abundanceDistributionPlot(aout,m=model'nefscSpringLFA41.pdf')

LobsterScience/bio.lobster documentation built on Feb. 14, 2025, 3:28 p.m.