Learn R Programming

s2dverification (version 2.5.0)

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)

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.

Examples

Run this code
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 DataLab