Learn R Programming

r4ss (version 1.11)

mountains: Make shaded polygons with a mountain-like appearance

Description

Designed to replicate like the cool-looking Figure 7 in Butterworth et al. (2003).

Usage

mountains(zmat, xvec=NULL, yvec=NULL, zscale=3, nshades=100,
           xaxs='i', yaxs='i', xlab="", ylab="", las=1, addbox=FALSE, ...)

Arguments

zmat
a matrix where the rows represent the heights of each mountain range
xvec
optional input for the x variable
yvec
optional input for the y variable
zscale
controls the height of the mountains relative to the y-axis and max(zmat)
nshades
number of levels of shading
xaxs
x-axis as internal or regular (see ?par for details)
yaxs
y-axis as internal or regular (see ?par for details)
xlab
optional label for x-axis
ylab
optional label for y-axis
las
axis label style (see ?par for details). Default = 1 = horizontal axis labels.
addbox
puts a box around the whole plot
...
extra inputs passed to the plot command

References

Butterworth D.S., Ianelli J.N., Hilborn R. (2003) A statistical model for stock assessment of southern bluefin tuna with temporal changes in selectivity. South African Journal of Marine Science 25:331-362.