add.map.bathy: Add Map Bathymetry (shaded)

View source: R/map.plot.R

add.map.bathyR Documentation

Add Map Bathymetry (shaded)

Description

Add Map Bathymetry (shaded)

Usage

add.map.bathy(
  map,
  bathy,
  refine = 0,
  trim = T,
  zlim = NULL,
  pal = "greyscale",
  n = 255,
  rev = FALSE,
  col.low = "",
  col.high = "",
  verbose = T
)

Arguments

map

a map object returned by the function make.map()

bathy

a bathymetric dataframe returned by get.map.bathy

zlim

the z-axis range that the colormap is projected upon

pal

the color palette used for coloring the shading. Should consist of a function name as a string

n

the number of distinct colors to use

rev

a boolean flag to flip the color axis

col.low

the color used when painting data that is below the zlim range. A value of NA causes the data not to be drawn, and a value of ” uses the lowest color value for out of range data.

col.high

same as col.low but for data that is out of range above the zlim.

filled

a flag to turn on color smoothing and filling from the OCE package. Works for some datasets but may cause issues.

refinement

the level of bilinear refinement to apply to the image grid

Author(s)

Thomas Bryce Kelly


tbrycekelly/TheSource documentation built on Nov. 7, 2023, 12:48 a.m.