ploteq: ploteq() Modification of method plot('FLBRP') to plot...

View source: R/PlotRefs.R

ploteqR Documentation

ploteq() Modification of method plot('FLBRP') to plot equilibrium output of computeFbrp()

Description

ploteq() Modification of method plot('FLBRP') to plot equilibrium output of computeFbrp()

Usage

ploteq(
  brps,
  refpts = "missing",
  obs = FALSE,
  rel = FALSE,
  rpf = TRUE,
  dashed = rpf,
  colours = "missing",
  panels = NULL,
  ncol = 2
)

Arguments

brps

output object from computeFbrp of class FLBRP

refpts

Reference points, defaults are computed refpts from computeFbrp()

  • Fbrp

  • Blim

  • B0

  • Btri

obs

Should observations be plotted? Defaults to 'FALSE'.

rel

option to denote x,y labs as relative B/Btgt and F/Ftgt

rpf

adds refpts in plots

dashed

plots vertical dashed lines to highlight refpts locations

colours

refpts colours, default is designed for computeFbrp() output

panels

plot panel option 1:4

ncol

number of plot panel columns

Value

ggplot

Examples

data(ple4)
srr = srrTMB(as.FLSR(ple4,model=rickerSV),spr0=spr0y(ple4))
brp = computeFbrp(stock=ple4,sr=srr,proxy=c("sprx","f0.1","msy"),blim=0.1,type="b0")
ploteq(brp,obs=TRUE)
ploteq(brp,obs=TRUE,refpts="msy",rel=TRUE)
brp.pa = computeFbrp(stock=ple4,sr=srr,proxy=c("msy","sprx","f0.1"),blim=0.1,bpa=Fbrp(brp)["Blim"]*2,type="b0")
ploteq(brp.pa,obs=TRUE,rel=TRUE)

Henning-Winker/FLRef documentation built on Dec. 16, 2024, 7:23 p.m.