Description Usage Arguments Author(s) Examples
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).
1 2 3 |
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 |
Charles Edwards, D'Arcy Webber
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.