View source: R/plot_data_timeline.R
plot_data_timeline | R Documentation |
Make a data timeline table from the BAM rdat output t.series object. Note: plot_data_timeline() uses the plot.matrix package
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
)
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 |
Kyle Shertzer and Nikolai Klibansky
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.