s2dverification (version 2.8.6)

PlotSection: Plots A Vertical Section

Description

Plot a (longitude,depth) or (latitude,depth) section.

Usage

PlotSection(var, horiz, depth, toptitle = "", sizetit = 1, units = "",
  brks = NULL, cols = NULL, axelab = TRUE, intydep = 200,
  intxhoriz = 20, drawleg = TRUE, fileout = NULL, width = 8,
  height = 5, size_units = "in", res = 100, ...)

Arguments

var

Matrix to plot with (longitude/latitude, depth) dimensions.

horiz

Array of longitudes or latitudes.

depth

Array of depths.

toptitle

Title, optional.

sizetit

Multiplicative factor to increase title size, optional.

units

Units, optional.

brks

Colour levels, optional.

cols

List of colours, optional.

axelab

TRUE/FALSE, label the axis. Default = TRUE.

intydep

Interval between depth ticks on y-axis. Default: 200m.

intxhoriz

Interval between longitude/latitude ticks on x-axis. Default: 20deg.

drawleg

Draw colorbar. Default: TRUE.

fileout

Name of output file. Extensions allowed: eps/ps, jpeg, png, pdf, bmp and tiff. Default = NULL

width

File width, in the units specified in the parameter size_units (inches by default). Takes 8 by default.

height

File height, in the units specified in the parameter size_units (inches by default). Takes 5 by default.

size_units

Units of the size of the device (file or window) to plot in. Inches ('in') by default. See ?Devices and the creator function of the corresponding device.

res

Resolution of the device (file or window) to plot in. See ?Devices and the creator function of the corresponding device.

...

Arguments to be passed to the method. Only accepts the following graphical parameters: adj ann ask bg bty cex.lab cex.sub cin col.axis col.lab col.main col.sub cra crt csi cxy err family fg fig fin font font.axis font.lab font.main font.sub lend lheight ljoin lmitre lty lwd mex mfcol mfrow mfg mkh oma omd omi page pch pin plt pty smo srt tcl usr xaxp xaxs xaxt xlog xpd yaxp yaxs yaxt ylbias ylog For more information about the parameters see `par`.

Examples

Run this code
# NOT RUN {
sampleData <- s2dverification::sampleDepthData
PlotSection(sampleData$mod[1, 1, 1, 1, , ], sampleData$lat, sampleData$depth,
           toptitle = 'temperature 1995-11 member 0')
# }

Run the code above in your browser using DataCamp Workspace