plot.mesh: Plot mesh

View source: R/plot.mesh.R

plot.meshR Documentation

Plot mesh

Description

Plot a mesh created from the get_mesh that is saved in the specified directory as VASTWestCoast_mesh.

Usage

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

Arguments

mesh

An INLA mesh resulting from get_mesh().

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 nine 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 is also returned for future manipulation.

Author(s)

Kelli F. Johnson

See Also

See INLA::plot.inla.mesh() for regular base R methods for plotting meshes, which can be called using plot(meshobject).


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