Learn R Programming

FSAdata (version 0.3.6)

WhitefishGSL: Catch-at-age of Great Slave Lake Whitefish (commercial) by area.

Description

Age composition of commercial Whitefish (Coregonus clupeaformis) catches for five areas of Great Slave Lake.

Arguments

Format

A data frame with 16 observations on the following 6 variables:

age

Assigned ages.

area.IE

Catches for area IE.

area.II

Catches for area II.

area.IV

Catches for area IV.

area.V

Catches for area V.

area.IW

Catches for area IW.

Topic(s)

  • Mortality

  • Catch curve

Examples

Run this code
# NOT RUN {
data(WhitefishGSL)
str(WhitefishGSL)
head(WhitefishGSL)
op <- par(mfrow=c(3,2),pch=19)
plot(log(area.IE)~age,data=WhitefishGSL)
plot(log(area.II)~age,data=WhitefishGSL)
plot(log(area.IV)~age,data=WhitefishGSL)
plot(log(area.V)~age,data=WhitefishGSL)
plot(log(area.IW)~age,data=WhitefishGSL)
par(op)

# can be reshaped to 'long' format with
# }
# NOT RUN {
library(reshape)
WhitefishGSL1 <- melt(WhitefishGSL,id.vars="age")
names(WhitefishGSL1) <- c("age","area","number")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab