Learn R Programming

r4ss (version 1.44.0)

SSplotMovementRates: Plot movement rates from model output

Description

Plots estimated movement rates in final year for each area/season with movement as reported in Report.sso. If movement is time-varying, an additional figure shows pattern across years (if the MGparm_By_Year_after_adjustments table (report:7) is available in the Report.sso file)

Usage

SSplotMovementRates(
  replist,
  plot = TRUE,
  print = FALSE,
  subplots = 1:2,
  plotdir = "default",
  colvec = "default",
  ylim = "default",
  legend = TRUE,
  legendloc = "topleft",
  moveseas = "all",
  min.move.age = 0.5,
  pwidth = 6.5,
  pheight = 5,
  punits = "in",
  res = 300,
  ptsize = 10,
  cex.main = 1,
  verbose = TRUE
)

Arguments

replist

A list object created by SS_output().

plot

plot to active plot device?

print

print to PNG files?

subplots

which subplots to create.

plotdir

where to put the plots (uses model directory by default)

colvec

vector of colors for each movement rate in the plot

ylim

optional input for y range of the plot. By default plot ranges from 0 to 10% above highest movement rate (not including fish staying in an area).

legend

add a legend designating which color goes with which pair of areas?

legendloc

location passed to legend function (if used)

moveseas

choice of season for which movement rates are shown

min.move.age

Minimum age of movement (in future will come from Report file)

pwidth

width of plot

pheight

height of plot

punits

units for PNG file

res

Resolution of plots printed to files. The default is res = 300.

ptsize

point size for PNG file

cex.main

Character expansion parameter for plot titles

verbose

Print information on function progress.

See Also

SS_output(), SSplotMovementRates(),

Examples

Run this code
# NOT RUN {
SSplotMovementRates(myreplist)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab