plot: Method plot

plotR Documentation

Method plot

Description

Standard plot methods for every FLCore class. FLR plot methods are based on lattice, and attempt to show a general view of the object contents.

Usage

## S4 method for signature 'FLQuant,missing'
plot(
  x,
  xlab = "year",
  ylab = paste("data (", units(x), ")", sep = ""),
  type = "p",
  ...
)

## S4 method for signature 'FLStock,missing'
plot(x, auto.key = TRUE, ...)

## S4 method for signature 'FLBiol,missing'
plot(x, y, ...)

## S4 method for signature 'FLIndex,missing'
plot(x, type = c("splom"), ...)

## S4 method for signature 'FLSR,missing'
plot(x, main = "Functional form", log.resid = FALSE, cex = 0.8)

## S4 method for signature 'FLPar,missing'
plot(x, y = "missing", ...)

Details

Users are encouraged to write their own plotting code and make use of the overloaded lattice methods, for example xyplot or bwplot. See also lattice-FLCore.

Generic function

plot(x,y)

Author(s)

The FLR Team

See Also

plot

Examples


data(ple4)

# FLQuant
plot(catch.n(ple4)[, 1:20])
plot(catch.n(ple4)[, 1:20], type='b', pch=19, cex=0.5)

# FLStock
data(ple4sex)
plot(ple4)
plot(ple4sex)

# FLBiol
data(ple4.biol)
plot(ple4.biol)

# FLIndex
data(ple4.index)
plot(ple4.index)

# FLSR
data(nsher)
plot(nsher)

# FLPar
fpa <- FLPar(a=rnorm(100, 1, 20), b=rlnorm(100, 0.5, 0.2))
plot(fpa)


flr/FLCore documentation built on May 4, 2024, midnight