Learn R Programming

FSAdata (version 0.4.1)

Cabezon: Ages, lengths, and maturity for female Cabezon from Oregon.

Description

Ages, lengths, and maturity for female Cabezon (Scorpaenichthys marmoratus) from Newport and Depoe Bay, Oregon.

Arguments

Format

A data frame with 525 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)

  • Maturity

  • Growth

  • von Bertalanffy

Examples

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

Run the code above in your browser using DataLab