Learn R Programming

r4ss (version 1.24.0)

sel.line: a function for drawing selecitivity curves

Description

This function is primarily inteded for use by the selfit function.

Usage

sel.line(x, model, sp, min.dist, max.dist)

Arguments

x

vector of x values (age or length)

model

selectivity model "Double_Normal" or "Double_Logistic"

sp

vector of parameters

min.dist

minimum value for selectivity

max.dist

maximum value for selectivity

See Also

selfit

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
plot(0, xlim = c(0, 50), ylim = c(0, 1),
xlab = 'Length', ylab = 'Selectivity', type = 'n',
xaxs = 'i', yaxs = 'i') 
sel.line(model = 'Double_Normal', min.dist = 10, max.dist = 50,
sp = c(25, -0.5, 3, 3, -5, 0))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab