F.plot.lifestages: F.plot.lifestages

F.plot.lifestagesR Documentation

F.plot.lifestages

Description

Produce a plot of the passage associated with all distinct combinations of lifestage (or fork length) and run.

Usage

F.plot.lifestages(df, file.root, plot.pies = FALSE)

Arguments

df

A data frame containing runs in the rows and life stages (or fork-length groups) across the columns.

file.root

A text string indicating a prefix to append to all output.

plot.pies

If TRUE, a pie chart is produced instead of a bar chart.

Details

Function F.plot.lifestages works on both life stages and fork-length groups, depending on if F.run.passage or passageWithLifeStageAssign was called in the case of the former, or if F.lifestage.passage.forkLength in the case of the latter.

Note that function F.lifestage.passage.forkLength only plots results from the Fall run, by design.

Value

A graphical png plotting a bar chart showing relative numbers of estimated passage, with lifestages down the rows, and runs across the columns. Generally, all passage routines utilize the bar-chart option via paramter plot.pies; thus, pie charts are never returned.

Author(s)

WEST Inc.

See Also

F.run.passage, passageWithLifeStageAssign, F.lifestage.passage.forkLength

Examples

## Not run: 
# Plot passage estimates housed in a data frame
# entitled allCatch.  
F.plot.lifestages(df=allCatch,file.root="PassageResults",plot.pies=FALSE)

## End(Not run)

tmcd82070/CAMP_RST documentation built on April 6, 2022, 12:07 a.m.