Plot a (longitude,depth) or (latitude,depth) section.
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,
...
)
Matrix to plot with (longitude/latitude, depth) dimensions.
Array of longitudes or latitudes.
Array of depths.
Title, optional.
Multiplicative factor to increase title size, optional.
Units, optional.
Colour levels, optional.
List of colours, optional.
TRUE/FALSE, label the axis. Default = TRUE.
Interval between depth ticks on y-axis. Default: 200m.
Interval between longitude/latitude ticks on x-axis.
Default: 20deg.
Draw colorbar. Default: TRUE.
Name of output file. Extensions allowed: eps/ps, jpeg, png,
pdf, bmp and tiff.
Default = NULL
File width, in the units specified in the parameter size_units (inches by default). Takes 8 by default.
File height, in the units specified in the parameter size_units (inches by default). Takes 5 by default.
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.
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`.
sampleData <- s2dv::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