plot.inputgrid: Plot input grid

View source: R/plot.inputgrid.R

plot.inputgridR Documentation

Plot input grid

Description

Plot a map of the grid cells used in the prediction of VAST results.

Usage

## S3 method for class 'inputgrid'
plot(data, savedir = getwd(), lab.survey = "survey")

Arguments

data

A data frame returned from get_inputgrid that includes the following columns:

  • Latitude, available as "Lat";

  • Longitude, available as "Lon";

  • Area, available as "Area_km2"; and

  • Depth in meters.

savedir

A file path to the directory where the results will be saved. The default is the current working directory. The path can be relative or absolute.

lab.survey

A character entry specifying the name of the survey that gathered the data. This can be text of your choice or a single word used to represent the survey name as defined in the first column of createMatrix(). See GetSurveyAbb.fn() for how this shortened name is linked to a longer abbreviation. Either the results of this function based on your input or your direct input if no match is found will be used as text on the plot or in the resulting caption. The default is the word "survey" which will fit the bill for a generic specification.

Value

A figure 9 inches long (roughly fitting on a single page) is saved to the disk, along with a caption. The files are saved using the name VASTWestCoast_mesh.xxx. The ggplot2 object is returned for future manipulation.

Author(s)

Kelli F. Johnson


nwfsc-assess/VAST_WestCoast documentation built on July 4, 2023, 5:45 p.m.