plot.section: Plot Section

View source: R/section.plot.R

plot.sectionR Documentation

Plot Section

Description

Plot a section object.

Usage

plot.section(
  section,
  field = NULL,
  xlim = NULL,
  ylim = NULL,
  by.lon = F,
  by.lat = F,
  xlab = "x",
  ylab = "y",
  log = FALSE,
  base = 10,
  zlim = NULL,
  pal = "greyscale",
  rev = F,
  include.data = F,
  mark.points = F,
  include.pch = 21,
  include.cex = 1,
  main = NULL,
  col.low = "",
  col.high = "",
  N = 255,
  indicate = T,
  ...
)

Arguments

field

Parameter name to be plotted (z-axis).

xlim

Limits of the plot, by default the limits are set to the limits of the section grid.

xlab

X-axis label.

ylab

Y-axis label.

log

Flag for turning on log transformation of the z-axis. If TRUE then z = log(z) is performed prior to plotting.

base

Used when log = TRUE to set the base of the log.

zlim

The zlim imposed on the z-axis, which by default is set to the range of z values in the data.

pal

The color palette used; should be modeled after get.pal().

rev

Boolean for reversing the palette colors.

include.data

Flag for whether the data used to construct the grid should be plotted using the same palette.

mark.points

Flag for marking the location of each sample used to construct the grid.

include.pch

The pch used for when mark.points = TRUE.

include.cex

Sets the point size for when either include.data or mark.points are TRUE. (Used for both).

main

The title text to be included in the top line of the plot. Defaults to the name of the field.

col.low

[unimplemented] The color used when plotting out-of-range z values on the low end. Default value of ” indicates to use the minimum value of pal(). A value of NA skips the plotting of these data. Otherwise the color given is used (e.g. col.low = 'blue').

col.high

[unimplemented] Same as col.low but for out-of-range high values.

section:

section object (2D only) to be plotted.

tlim

Limits of the plot, by default the limits are set to the limits of the section grid.

Author(s)

Thomas Bryce Kelly


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