run_and_plot: Run and Plot Function

Description Usage Arguments Examples

View source: R/run_and_plot.R

Description

High level wrapper function to run simulation and generate certain plots

Usage

1
2
3
4
run_and_plot(numrow = 10, numcol = 10, nfish = 1000, distribute,
  seed = 300, nyears = 15, location_list, random_locations = FALSE,
  nlocs = 10, move_func, nhooks, ndrops, scope = 0, pdf = FALSE,
  png = FALSE, make_plot = FALSE, ...)

Arguments

numrow

Number of rows in matrix

numcol

Number of columns in matrix

nfish

Number of fish to allocate among matrix

distribute

Specify fish distribution to be 'uniform', 'patchy', or 'area' specific

seed

Set seed if distribute == random, defaults to 300

move_func

input movement function name as text. Later parsed into function call

maxfish

Maximum number of fish that can be sampled at a time

percent

percentage of area to sample. Only necessary if distribute == 'patchy'

area

Specify area to distribute fish, options are 'upperleft', 'upperright', 'lowerleft', 'lowerright', 'upperhalf', 'lowerhalf', 'righthalf', 'lefthalf' Only necessary if distribute == 'area'

Examples

1
2
3
4
5
6
7
run_and_plot(numrow = 10, numcol = 10, nfish = 10000,
 distribute = 'uniform', seed = 300, nyears = 15, random_locations = TRUE, 
 nlocs = 10, move_func = 'move_fish_left', max_prob = .2, min_prob = .01)

 run_and_plot(numrow = 10, numcol = 10, nfish = 1000,
   distribute = 'uniform', seed = 300, nyears = 15, random_locations = TRUE, 
   nlocs = 10, move_func = 'move_fish_cw', move_prob = .8)

peterkuriyama/hlsimulator_old documentation built on May 25, 2019, 1:51 a.m.