plot_data_timeline: plot_data_timeline

View source: R/plot_data_timeline.R

plot_data_timelineR Documentation

plot_data_timeline

Description

Make a data timeline table from the BAM rdat output t.series object. Note: plot_data_timeline() uses the plot.matrix package

Usage

plot_data_timeline(
  rdat,
  key_data_type_abb = c(L = "landings", D = "discards", U = "index", acomp = "age comp",
    lcomp = "length comp"),
  key_fleet_abb = c(cHL = "com handline", cOT = "com other", cLL = "com longline", rGN =
    "rec general", rHB = "rec headboat", rHB.D = "rec headboat discards", sTV =
    "SERFS trap video"),
  data_types = c("L", "D", "U", "acomp", "lcomp"),
  FUN_col = "rainbow",
  t.series.row.trunc = 1
)

Arguments

rdat

(list) object read in with dget()

key_data_type_abb

data type abbreviation key

key_fleet_abb

fleet abbreviation key

data_types

data types to include in plot

t.series.row.trunc

truncate rows of t.series object by this value to avoid plotting projection year or show what available data would look like in retrospective runs

Author(s)

Kyle Shertzer and Nikolai Klibansky

Examples

## Not run: 
## Data timeline plot Examples
par(mar=c(3,12,1,8),mgp=c(1,0.3,0),tck=0,las=2)
rdat <- rdat_GrayTriggerfish
plot_data_timeline(rdat,FUN_col = "heat.colors")

par(mar=c(3,12,1,8),mgp=c(1,0.3,0),tck=0,las=2)
library(viridisLite)
plot_data_timeline(rdat,data_types = c("acomp","lcomp"),FUN_col = "viridis")

## End(Not run)


nikolaifish/bamExtras documentation built on July 21, 2023, 8:26 a.m.