Learn R Programming

FSAdata (version 0.4.1)

YERockfish: Ages, lengths, and maturity for Yelloweye Rockfish.

Description

Ages, lengths, and maturity for female Yelloweye Rockfish (Sebastes rubberimus) from Oregon.

Arguments

Format

A data frame with 159 observations on the following 5 variables.

date

Date fish was collected

length

Total length (cm)

age

Otolith age

maturity

Maturity state (Immature or Mature)

stage

Stage of maturity (1:Immature, 2:Maturing, 3:Mature, 4:Fertilized, 5:Ripe, 6:Spent, 7:Resting)

Topic(s)

  • Growth

  • Maturity

  • von Bertalanffy

Examples

Run this code
data(YERockfish)
str(YERockfish)
head(YERockfish)
op <- par(mfrow=c(2,2),pch=19)
plot(length~age,data=YERockfish,ylab="Total Length (cm)",xlab="Age")
hist(YERockfish$length,xlab="Total Length (cm)",main="")
tbl1 <- with(YERockfish,table(age,maturity))
(ptbl1 <- prop.table(tbl1,margin=1))
plot(ptbl1[,2]~as.numeric(row.names(ptbl1)),type="l",xlab="Age",ylab="Proportion Mature")
tbl2 <- with(YERockfish,table(length,maturity))
(ptbl2 <- prop.table(tbl2,margin=1))
plot(ptbl2[,2]~as.numeric(row.names(ptbl2)),type="l",xlab="Age",ylab="Proportion Mature")
par(op)

Run the code above in your browser using DataLab