mpeview: MPE output viewer

Description Usage Arguments Author(s) Examples

Description

Options for pars that are commonly plotted include the median of the average commercial catch (AvComm_med), the median of the average recreational catch (acRec_med), the AAV_med, the median of the average catch per unit effort (avI_AW_med).

Usage

1
2
3
mpeview(dat, pars, stock, axis.labels, point.col = "rule",
  label.rules = ifelse(point.col == "", TRUE, FALSE), file.suffix = "",
  target.dir = ".")

Arguments

dat

a data.frame read in using read.sims.sum

pars

the parameters that can be plotted. The first par becomes the x axis, the remaining pars different panels (choose up to 4 pars)

stock

a stock label

axis.labels

named list of the form list(x,y) with x and y character vectors containing the x and y labels

point.col

the variable used to colour the points, can be coloured by "rules" or any of the pars (e.g. "par1", "par2", ..., "par10")

file.suffix

a suffix to append to the end of the saved plot name

target.dir

the directory to save the plot to

Author(s)

Charles Edwards, D'Arcy Webber

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
 # read in the data
 dat <- read.sims.sum(stock = c("CRA7", "CRA8"))
 
 # plot all rules for both CRA7 and CRA8
 mpeview(dat, pars = c('AvComm_med', 'AAV_med', 'AvPCPUE_med'), stock = c("CRA7", "CRA8"), axis.labels = list(x = "Commercial Catch", y = c("AAV", "CPUE")))
 
 # plot all rules for CRA7 only
 mpeview(dat, pars = c('AvComm_med', 'AAV_med', 'AvPCPUE_med'), stock = "CRA7", axis.labels = list(x = "Commercial Catch", y = c("AAV", "CPUE")))

## End(Not run)

NZRLIC/RLPlots documentation built on May 7, 2019, 6:05 p.m.