View source: R/plot.vast.space.time.r
Plot vast output by spatial knots and time block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | plot.vast.space.time(
  vast.output,
  coast.shp,
  region.shp.list,
  species = "BET",
  plot.type = "N",
  model.start.year = 1952,
  t.block = 4,
  plot.obs.grid = FALSE,
  x.extent = c(95, 295),
  y.extent = c(-50, 60),
  scale.trans = "identity",
  virids.pal = "D",
  save.dir,
  save.name
)
 | 
| vast.output | The output from a fit.vast function call | 
| coast.shp | supply a coast shapefile, if missing this defaults to the coast shapefile stored in the package | 
| region.shp.list | supply a shapefile with the regional structure, if missing this defaults to the WCPO 10N shapefile stored in the package | 
| species | String denoting the species of the analysis | 
| plot.type | The type of metric to plot 'pred.cpue', 'bin', 'pos', 'resid', 'bin.resid', 'pos.resid', 'N', 'Omega1', 'Omega2','Epsilon1', or 'Epsilon2' 
 | 
| model.start.year | An integer denoting the first year of data used in the model | 
| t.block | An integer denoting the number of years to aggregate together in time blocks | 
| plot.obs.grid | TRUE or FALSE. Plot the observations. Default is FALSE as otherwise the plot looks gross | 
| x.extent | Specify the xlim of the plot as c(xmin,xmax) in degrees 0 to 360 | 
| y.extent | Specify the ylim of the plot as c(ymin,ymax) in degrees -90 to 90 | 
| scale.trans | A character string denoting the type of ggplot2 scale transformation to use for the color scale. Built-in transformations include "asn", "atanh", "boxcox", "date", "exp", "hms", "identity", "log", "log10", "log1p", "log2", "logit", "modulus", "probability", "probit", "pseudo_log", "reciprocal", "reverse", "sqrt" and "time". | 
| save.dir | Path to the directory where the outputs will be saved | 
| save.name | Name stem for the output, useful when saving many model outputs in the same directory | 
| viridis.pal | A character string indicating the colormap option to use. Four options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), "viridis" (or "D", the default option) and "cividis" (or "E") | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.