PlotSection {s2dv} | R Documentation |
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. |
drawleg |
Draw colorbar. Default: TRUE. |
fileout |
Name of output file. Extensions allowed: eps/ps, jpeg, png,
pdf, bmp and tiff. |
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: |
Examples
sampleData <- s2dv::sampleDepthData
PlotSection(sampleData$mod[1, 1, 1, 1, , ], sampleData$lat, sampleData$depth,
toptitle = 'temperature 1995-11 member 0')