1.2 The landings data, landings.RData

The landings data object contains the following:

  • landings The 1964 to 2007 total landings data multiple species. It is stored as a data frame, not ts object, with a year column, a species column and columns for landings in metric tons and log metric tons.
  • anchovy and sardine A data frame for the landings (in log metric tons) of these species. These are the example catch time series used in the chapters. The data are 1964-2007, however Stergiou and Christou used 1964-1989 and the time series are subsetted to this time period for the examples. These data frames have only year and log.metric.tons columns.
  • anchovyts and sardinets A ts object for the yearly landings (in log metric tons) of these species.
  • anchovy87 and sardine87 A subsetted data frame with Year <= 1987. This is the training data used in Stergiou and Christou.
  • anchovy87ts and sardine87ts A ts object for the yearly landings (in log metric tons) of these species for 1964-1987.
  • covsmean.mon and covsmean.year The covariates air temperature, pressure, sea surface temperature, vertical wind, and wind speed cubed average monthly and yearly over three 1 degree boxes in the study area. See the appendix in the chapter on covariates.

Load the data as follows and use only the 1964-1989 landings. We use subset() to subset the landings data frame. Not window() as that is a function for subsetting ts objects.

load("landings.RData")
landings89 = subset(landings, Year <= 1989)
ggplot(landings89, aes(x=Year, y=log.metric.tons)) +
  geom_line() + facet_wrap(~Species)