get_image: Get a Graph of Stock Assessment Output

View source: R/get_image.R

get_imageR Documentation

Get a Graph of Stock Assessment Output

Description

Get a graph of stock assessment output, e.g., historical stock size, recruitment, and fishing pressure.

Usage

get_image(
  assessmentKey,
  type = c("landings", "recruitment", "ssb", "mortality", "historical_mortality",
    "historical_ssb", "historical_recruitment"),
  width = 800,
  ...
)

Arguments

assessmentKey

the unique identifier of the stock assessment

type

The type of plot: values can be landings, recruitment ssb, mortality, historical_mortality, historical_ssb, historical_recruitment.

width

width of the image in pixels

...

to allow scope for back compatibility

Value

An array representing a bitmap.

See Also

StockList gets a list of stocks.

FishStockReferencePoints gets biological reference points.

icesSAG-package gives an overview of the package.

Examples

## Not run: 
assessmentKey <- findAssessmentKey("cod.27.21", year = 2022:2023)
landings_img <- get_image(assessmentKey[1], "landings")

plot(landings_img)

landings_plots <- get_image(assessmentKey, "landings")
plot(landings_plots)

## End(Not run)


ices-tools-prod/icesSAG documentation built on Nov. 24, 2023, 1:55 a.m.