<!DOCTYPE html>
<!-- Generated by pkgdown: do not edit by hand --><html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><title>Plot a ctd Profile — plotProfile • oce</title><script src="../deps/jquery-3.6.0/jquery-3.6.0.min.js"></script><meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"><link href="../deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet"><script src="../deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script><link href="../deps/font-awesome-6.4.2/css/all.min.css" rel="stylesheet"><link href="../deps/font-awesome-6.4.2/css/v4-shims.min.css" rel="stylesheet"><script src="../deps/headroom-0.11.0/headroom.min.js"></script><script src="../deps/headroom-0.11.0/jQuery.headroom.min.js"></script><script src="../deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script><script src="../deps/clipboard.js-2.0.11/clipboard.min.js"></script><script src="../deps/search-1.0.0/autocomplete.jquery.min.js"></script><script src="../deps/search-1.0.0/fuse.min.js"></script><script src="../deps/search-1.0.0/mark.min.js"></script><!-- pkgdown --><script src="../pkgdown.js"></script><meta property="og:title" content="Plot a ctd Profile — plotProfile"><meta name="description" content="Plot a profile, showing variation of some quantity (or quantities) with
pressure, using the oceanographic convention of putting lower pressures
nearer the top of the plot. This works for any oce object that has a
pressure column in its data slot.
The colors (col.salinity, etc.) are only used if two profiles appear
on a plot."><meta property="og:description" content="Plot a profile, showing variation of some quantity (or quantities) with
pressure, using the oceanographic convention of putting lower pressures
nearer the top of the plot. This works for any oce object that has a
pressure column in its data slot.
The colors (col.salinity, etc.) are only used if two profiles appear
on a plot."></head><body>
    <a href="#main" class="visually-hidden-focusable">Skip to contents</a>


    <nav class="navbar navbar-expand-lg fixed-top bg-light" data-bs-theme="light" aria-label="Site navigation"><div class="container">

    <a class="navbar-brand me-2" href="../index.html">oce</a>

    <small class="nav-text text-muted me-auto" data-bs-toggle="tooltip" data-bs-placement="bottom" title="">1.8-4</small>


    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
      <span class="navbar-toggler-icon"></span>
    </button>

    <div id="navbar" class="collapse navbar-collapse ms-3">
      <ul class="navbar-nav me-auto"><li class="active nav-item"><a class="nav-link" href="../reference/index.html">Reference</a></li>
<li class="nav-item dropdown">
  <button class="nav-link dropdown-toggle" type="button" id="dropdown-articles" data-bs-toggle="dropdown" aria-expanded="false" aria-haspopup="true">Articles</button>
  <ul class="dropdown-menu" aria-labelledby="dropdown-articles"><li><a class="dropdown-item" href="../articles/A_oce.html">1. Introduction to Oce</a></li>
    <li><a class="dropdown-item" href="../articles/B_ctd.html">2. Analysis of CTD data</a></li>
    <li><a class="dropdown-item" href="../articles/C_adp.html">3. Analysis of acoustic-Doppler data</a></li>
    <li><a class="dropdown-item" href="../articles/D_map_projections.html">4. Using map projections</a></li>
    <li><a class="dropdown-item" href="../articles/E_flags.html">5. Dealing with data-quality flags</a></li>
    <li><a class="dropdown-item" href="../articles/F_subclassing.html">6. Subclassing oce objects</a></li>
    <li><a class="dropdown-item" href="../articles/G_altering_defaults.html">7. Altering oce Defaults</a></li>
    <li><a class="dropdown-item" href="../articles/H_tides.html">8. Tidal Analysis</a></li>
  </ul></li>
<li class="nav-item"><a class="nav-link" href="../news/index.html">Changelog</a></li>
      </ul><ul class="navbar-nav"><li class="nav-item"><form class="form-inline" role="search">
 <input class="form-control" type="search" name="search-input" id="search-input" autocomplete="off" aria-label="Search site" placeholder="Search for" data-search-index="../search.json"></form></li>
<li class="nav-item"><a class="external-link nav-link" href="https://github.com/dankelley/oce/" aria-label="GitHub"><span class="fa fab fa-github fa-lg"></span></a></li>
      </ul></div>


  </div>
</nav><div class="container template-reference-topic">
<div class="row">
  <main id="main" class="col-md-9"><div class="page-header">

      <h1>Plot a ctd Profile</h1>
      <small class="dont-index">Source: <a href="https://github.com/dankelley/oce/blob/HEAD/R/ctd.R" class="external-link"><code>R/ctd.R</code></a></small>
      <div class="d-none name"><code>plotProfile.Rd</code></div>
    </div>

    <div class="ref-description section level2">
    <p>Plot a profile, showing variation of some quantity (or quantities) with
pressure, using the oceanographic convention of putting lower pressures
nearer the top of the plot. This works for any <code>oce</code> object that has a
pressure column in its <code>data</code> slot.
The colors (<code>col.salinity</code>, etc.) are only used if two profiles appear
on a plot.</p>
    </div>

    <div class="section level2">
    <h2 id="ref-usage">Usage<a class="anchor" aria-label="anchor" href="#ref-usage"></a></h2>
    <div class="sourceCode"><pre class="sourceCode r"><code><span><span class="fu">plotProfile</span><span class="op">(</span></span>
<span>  <span class="va">x</span>,</span>
<span>  xtype <span class="op">=</span> <span class="st">"salinity+temperature"</span>,</span>
<span>  ytype <span class="op">=</span> <span class="st">"pressure"</span>,</span>
<span>  eos <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"oceEOS"</span>, default <span class="op">=</span> <span class="st">"gsw"</span><span class="op">)</span>,</span>
<span>  lty <span class="op">=</span> <span class="fl">1</span>,</span>
<span>  xlab <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span>  ylab <span class="op">=</span> <span class="cn">NULL</span>,</span>
<span>  col <span class="op">=</span> <span class="st">"black"</span>,</span>
<span>  col.salinity <span class="op">=</span> <span class="st">"darkgreen"</span>,</span>
<span>  col.temperature <span class="op">=</span> <span class="st">"red"</span>,</span>
<span>  col.rho <span class="op">=</span> <span class="st">"blue"</span>,</span>
<span>  col.N2 <span class="op">=</span> <span class="st">"brown"</span>,</span>
<span>  col.dpdt <span class="op">=</span> <span class="st">"darkgreen"</span>,</span>
<span>  col.time <span class="op">=</span> <span class="st">"darkgreen"</span>,</span>
<span>  pt.bg <span class="op">=</span> <span class="st">"transparent"</span>,</span>
<span>  grid <span class="op">=</span> <span class="cn">TRUE</span>,</span>
<span>  col.grid <span class="op">=</span> <span class="st">"lightgray"</span>,</span>
<span>  lty.grid <span class="op">=</span> <span class="st">"dotted"</span>,</span>
<span>  <span class="va">Slim</span>,</span>
<span>  <span class="va">Clim</span>,</span>
<span>  <span class="va">Tlim</span>,</span>
<span>  <span class="va">densitylim</span>,</span>
<span>  <span class="va">sigmalim</span>,</span>
<span>  <span class="va">N2lim</span>,</span>
<span>  <span class="va">Rrholim</span>,</span>
<span>  <span class="va">dpdtlim</span>,</span>
<span>  <span class="va">timelim</span>,</span>
<span>  <span class="va">plim</span>,</span>
<span>  <span class="va">xlim</span>,</span>
<span>  <span class="va">ylim</span>,</span>
<span>  lwd <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/graphics/par.html" class="external-link">par</a></span><span class="op">(</span><span class="st">"lwd"</span><span class="op">)</span>,</span>
<span>  xaxs <span class="op">=</span> <span class="st">"r"</span>,</span>
<span>  yaxs <span class="op">=</span> <span class="st">"r"</span>,</span>
<span>  cex <span class="op">=</span> <span class="fl">1</span>,</span>
<span>  pch <span class="op">=</span> <span class="fl">1</span>,</span>
<span>  useSmoothScatter <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span>  <span class="va">df</span>,</span>
<span>  keepNA <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span>  type <span class="op">=</span> <span class="st">"l"</span>,</span>
<span>  mgp <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"oceMgp"</span><span class="op">)</span>,</span>
<span>  <span class="va">mar</span>,</span>
<span>  add <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span>  inset <span class="op">=</span> <span class="cn">FALSE</span>,</span>
<span>  debug <span class="op">=</span> <span class="fu"><a href="https://rdrr.io/r/base/options.html" class="external-link">getOption</a></span><span class="op">(</span><span class="st">"oceDebug"</span>, <span class="fl">0</span><span class="op">)</span>,</span>
<span>  <span class="va">...</span></span>
<span><span class="op">)</span></span></code></pre></div>
    </div>

    <div class="section level2">
    <h2 id="arguments">Arguments<a class="anchor" aria-label="anchor" href="#arguments"></a></h2>


<dl><dt id="arg-x">x<a class="anchor" aria-label="anchor" href="#arg-x"></a></dt>
<dd><p>a <a href="ctd-class.html">ctd</a> object.</p></dd>


<dt id="arg-xtype">xtype<a class="anchor" aria-label="anchor" href="#arg-xtype"></a></dt>
<dd><p>item(s) to be plotted on the x axis, either a character
value taken from the following list, or a numeric vector of length
matching the <code>pressure</code> field stored in <code>x</code>. (In the second case,
as of version 1.7-11, a label is auto-constructed, unless the user
supplied a character value for <code>xlab</code>.)</p><ul><li><p><code>"salinity"</code> Profile of salinity.</p></li>
<li><p><code>"conductivity"</code> Profile of conductivity.</p></li>
<li><p><code>"temperature"</code> Profile of <em>in-situ</em> temperature.</p></li>
<li><p><code>"theta"</code> Profile of potential temperature.</p></li>
<li><p><code>"density"</code> Profile of density (expressed as \(\sigma_\theta\)).</p></li>
<li><p><code>"index"</code> Index of sample (useful for working with <code><a href="ctdTrim.html">ctdTrim()</a></code>).</p></li>
<li><p><code>"salinity+temperature"</code> Profile of salinity and temperature within a single axis frame.</p></li>
<li><p><code>"N2"</code> Profile of square of buoyancy frequency \(N^2\),
calculated with <code><a href="swN2.html">swN2()</a></code> with
an optional argument setting of <code>df=length(x[["pressure"]])/4</code> to do
some smoothing.</p></li>
<li><p><code>"density+N2"</code> Profile of sigma0 and
the square of buoyancy frequency within a single axis frame.</p></li>
<li><p><code>"density+dpdt"</code> Profile of sigma0 and dP/dt for the
sensor.  The latter is useful in indicating problems with the deployment.
It is calculated by first differencing pressure and then using a smoothing
spline on the result (to avoid grid-point wiggles that result because the
SBE software only writes 3 decimal places in pressure).  Note that dP/dt may
be off by a scale factor; this should not be a problem if there is a
<code>time</code> column in the <code>data</code> slot, or a <code>sample.rate</code> in the
<code>metadata</code> slot.</p></li>
<li><p><code>"sigma0"</code>, <code>"sigma1"</code>, <code>"sigma2"</code>, <code>"sigma3"</code>
and <code>"sigma4"</code> Profile of potential density referenced
to 0dbar (i.e. the surface), 1000dbar, 2000dbar, 3000dbar, and 4000dbar.</p></li>
<li><p><code>"spice"</code>, <code>"spiciness0"</code> <code>"spiciness1"</code> or <code>"spiciness2"</code>
Profile of named quantity.  For <code>spice</code>, <code><a href="swSpice.html">swSpice()</a></code> is
called with the <code>eos</code> argument set to <code>"unesco"</code>. Otherwise,
<code><a href="http://teos-10.github.io/GSW-R/reference/gsw_spiciness0.html" class="external-link">gsw::gsw_spiciness0()</a></code>', <code><a href="http://teos-10.github.io/GSW-R/reference/gsw_spiciness1.html" class="external-link">gsw::gsw_spiciness1()</a></code>' or
<code><a href="http://teos-10.github.io/GSW-R/reference/gsw_spiciness2.html" class="external-link">gsw::gsw_spiciness2()</a></code>' is called.</p></li>
<li><p><code>"Rrho"</code> Profile of Rrho, defined in the diffusive sense.</p></li>
<li><p><code>"RrhoSF"</code> Profile of Rrho, defined in the salt-finger sense.</p></li>
</ul></dd>


<dt id="arg-ytype">ytype<a class="anchor" aria-label="anchor" href="#arg-ytype"></a></dt>
<dd><p>variable to use on y axis. The valid choices are:
<code>"pressure"</code> (the default), <code>"z"</code>,
<code>"depth"</code>, <code>"sigmaTheta"</code> and <code>"sigma0"</code>.</p></dd>


<dt id="arg-eos">eos<a class="anchor" aria-label="anchor" href="#arg-eos"></a></dt>
<dd><p>equation of state to be used, either <code>"unesco"</code> or
<code>"gsw"</code>.</p></dd>


<dt id="arg-lty">lty<a class="anchor" aria-label="anchor" href="#arg-lty"></a></dt>
<dd><p>line type for the profile.</p></dd>


<dt id="arg-xlab">xlab<a class="anchor" aria-label="anchor" href="#arg-xlab"></a></dt>
<dd><p>optional label for x axis (at top of plot). If not
provided, a label is inferred from the value of <code>xtype</code>. For
the user-supplied case, bear in mind that the easy way to get
units is to use an expression, e.g.
<code>xlab=expression("Acceleration ["*m/s^2*"]")</code>.</p></dd>


<dt id="arg-ylab">ylab<a class="anchor" aria-label="anchor" href="#arg-ylab"></a></dt>
<dd><p>optional label for y axis.  See <code>xlab</code> for a note on
units.  Setting <code>ylab=""</code> prevents labelling the axis.</p></dd>


<dt id="arg-col">col<a class="anchor" aria-label="anchor" href="#arg-col"></a></dt>
<dd><p>color for a general profile.</p></dd>


<dt id="arg-col-salinity">col.salinity<a class="anchor" aria-label="anchor" href="#arg-col-salinity"></a></dt>
<dd><p>color for salinity profile (see “Details”).</p></dd>


<dt id="arg-col-temperature">col.temperature<a class="anchor" aria-label="anchor" href="#arg-col-temperature"></a></dt>
<dd><p>color for temperature (see “Details”).</p></dd>


<dt id="arg-col-rho">col.rho<a class="anchor" aria-label="anchor" href="#arg-col-rho"></a></dt>
<dd><p>color for density (see “Details”).</p></dd>


<dt id="arg-col-n-">col.N2<a class="anchor" aria-label="anchor" href="#arg-col-n-"></a></dt>
<dd><p>color for square of buoyancy frequency (see
“Details”).</p></dd>


<dt id="arg-col-dpdt">col.dpdt<a class="anchor" aria-label="anchor" href="#arg-col-dpdt"></a></dt>
<dd><p>color for dP/dt.</p></dd>


<dt id="arg-col-time">col.time<a class="anchor" aria-label="anchor" href="#arg-col-time"></a></dt>
<dd><p>color for delta-time.</p></dd>


<dt id="arg-pt-bg">pt.bg<a class="anchor" aria-label="anchor" href="#arg-pt-bg"></a></dt>
<dd><p>inside color for symbols with <code>pch</code> in 21:25</p></dd>


<dt id="arg-grid">grid<a class="anchor" aria-label="anchor" href="#arg-grid"></a></dt>
<dd><p>logical, set to <code>TRUE</code> to get a grid.</p></dd>


<dt id="arg-col-grid">col.grid<a class="anchor" aria-label="anchor" href="#arg-col-grid"></a></dt>
<dd><p>color for grid.</p></dd>


<dt id="arg-lty-grid">lty.grid<a class="anchor" aria-label="anchor" href="#arg-lty-grid"></a></dt>
<dd><p>line type for grid.</p></dd>


<dt id="arg-slim">Slim<a class="anchor" aria-label="anchor" href="#arg-slim"></a></dt>
<dd><p>optional limit for the salinity axis, which can either
represent Practical Salinity or Absolute Salinity.</p></dd>


<dt id="arg-clim">Clim<a class="anchor" aria-label="anchor" href="#arg-clim"></a></dt>
<dd><p>optional limit for the conductivity axis.</p></dd>


<dt id="arg-tlim">Tlim<a class="anchor" aria-label="anchor" href="#arg-tlim"></a></dt>
<dd><p>optional limit for the temperature axis, which
can represent in-situ temperature, potential temperature, or
Conservative Temperature.</p></dd>


<dt id="arg-densitylim">densitylim<a class="anchor" aria-label="anchor" href="#arg-densitylim"></a></dt>
<dd><p>optional limit for density axis.</p></dd>


<dt id="arg-sigmalim">sigmalim<a class="anchor" aria-label="anchor" href="#arg-sigmalim"></a></dt>
<dd><p>optional limit for the density-anomaly
axis, which can represent <code>sigmaTheta</code>, <code>sigma0</code>, <code>sigma1</code>,
<code>sigma2</code>, <code>sigma3</code> or <code>sigma4</code>.</p></dd>


<dt id="arg-n-lim">N2lim<a class="anchor" aria-label="anchor" href="#arg-n-lim"></a></dt>
<dd><p>optional limit for the N2 axis.</p></dd>


<dt id="arg-rrholim">Rrholim<a class="anchor" aria-label="anchor" href="#arg-rrholim"></a></dt>
<dd><p>optional limit for the density ratio axis.</p></dd>


<dt id="arg-dpdtlim">dpdtlim<a class="anchor" aria-label="anchor" href="#arg-dpdtlim"></a></dt>
<dd><p>optional limit for the dp/dt axis.</p></dd>


<dt id="arg-timelim">timelim<a class="anchor" aria-label="anchor" href="#arg-timelim"></a></dt>
<dd><p>optional limit for the delta-time axis.</p></dd>


<dt id="arg-plim">plim<a class="anchor" aria-label="anchor" href="#arg-plim"></a></dt>
<dd><p>optional limit for the pressure axis, ignored unless
<code>ytype=="pressure"</code>, in which case it takes precedence over
<code>ylim</code>.</p></dd>


<dt id="arg-xlim">xlim<a class="anchor" aria-label="anchor" href="#arg-xlim"></a></dt>
<dd><p>optional limit for x axis, which can apply to any plot type.
This is ignored if the plotted x variable is something for which a limit
may be specified with an argument, e.g. <code>xlim</code> is ignored for a
salinity profile, because <code>Slim</code> ought to be given in such a case.</p></dd>


<dt id="arg-ylim">ylim<a class="anchor" aria-label="anchor" href="#arg-ylim"></a></dt>
<dd><p>optional limit for y axis, which can apply to any plot type,
although is overridden by <code>plim</code> if <code>ytype</code> is <code>"pressure"</code>
or by <code>densitylim</code> if <code>ytype</code> is <code>"sigmaTheta"</code>.</p></dd>


<dt id="arg-lwd">lwd<a class="anchor" aria-label="anchor" href="#arg-lwd"></a></dt>
<dd><p>line width value for data line</p></dd>


<dt id="arg-xaxs">xaxs<a class="anchor" aria-label="anchor" href="#arg-xaxs"></a></dt>
<dd><p>value of <code><a href="https://rdrr.io/r/graphics/par.html" class="external-link">par()</a></code> <code>xaxs</code> to use</p></dd>


<dt id="arg-yaxs">yaxs<a class="anchor" aria-label="anchor" href="#arg-yaxs"></a></dt>
<dd><p>value of <code><a href="https://rdrr.io/r/graphics/par.html" class="external-link">par()</a></code> <code>yaxs</code> to use</p></dd>


<dt id="arg-cex">cex<a class="anchor" aria-label="anchor" href="#arg-cex"></a></dt>
<dd><p>size to be used for plot symbols (see <code><a href="https://rdrr.io/r/graphics/par.html" class="external-link">par()</a></code>)</p></dd>


<dt id="arg-pch">pch<a class="anchor" aria-label="anchor" href="#arg-pch"></a></dt>
<dd><p>code for plotting symbol (see <code><a href="https://rdrr.io/r/graphics/par.html" class="external-link">par()</a></code>).</p></dd>


<dt id="arg-usesmoothscatter">useSmoothScatter<a class="anchor" aria-label="anchor" href="#arg-usesmoothscatter"></a></dt>
<dd><p>boolean, set to <code>TRUE</code> to use
<code><a href="https://rdrr.io/r/graphics/smoothScatter.html" class="external-link">smoothScatter()</a></code> instead of <code><a href="https://rdrr.io/r/graphics/plot.default.html" class="external-link">plot()</a></code> to draw the plot.</p></dd>


<dt id="arg-df">df<a class="anchor" aria-label="anchor" href="#arg-df"></a></dt>
<dd><p>optional argument, passed to <code><a href="swN2.html">swN2()</a></code> if provided, and
if a plot using \(N^2\) is requested.</p></dd>


<dt id="arg-keepna">keepNA<a class="anchor" aria-label="anchor" href="#arg-keepna"></a></dt>
<dd><p>FALSE</p></dd>


<dt id="arg-type">type<a class="anchor" aria-label="anchor" href="#arg-type"></a></dt>
<dd><p>type of plot to draw, using the same scheme as
<code><a href="https://rdrr.io/r/graphics/plot.default.html" class="external-link">plot()</a></code>.</p></dd>


<dt id="arg-mgp">mgp<a class="anchor" aria-label="anchor" href="#arg-mgp"></a></dt>
<dd><p>3-element numerical vector to use for <a href="https://rdrr.io/r/graphics/par.html" class="external-link">par</a><code>(mgp)</code>, and also
for <a href="https://rdrr.io/r/graphics/par.html" class="external-link">par</a><code>(mar)</code>, computed from this.  The default is tighter than the R
default, in order to use more space for the data and less for the axes.</p></dd>


<dt id="arg-mar">mar<a class="anchor" aria-label="anchor" href="#arg-mar"></a></dt>
<dd><p>Four-element numerical value to be used to set the plot
margins, with a call to <a href="https://rdrr.io/r/graphics/par.html" class="external-link">par</a><code>(mar)</code> prior to the plot.
If this is not supplied, a reasonable default will be set up.</p></dd>


<dt id="arg-add">add<a class="anchor" aria-label="anchor" href="#arg-add"></a></dt>
<dd><p>A logical value that controls whether to add to an existing plot.  (It
makes sense to use <code>add=TRUE</code> in the <code>panel</code> argument of a
<code><a href="https://rdrr.io/r/graphics/coplot.html" class="external-link">coplot()</a></code>, for example.)</p></dd>


<dt id="arg-inset">inset<a class="anchor" aria-label="anchor" href="#arg-inset"></a></dt>
<dd><p>A logical value indicating whether to draw an inset plot.
Setting this to <code>TRUE</code> will prevent the present function from adjusting
the margins, which is
necessary because margin adjustment is the basis for the method used by
<code><a href="plotInset.html">plotInset()</a></code>.</p></dd>


<dt id="arg-debug">debug<a class="anchor" aria-label="anchor" href="#arg-debug"></a></dt>
<dd><p>a flag that turns on debugging.  Set to 1 to get a moderate
amount of debugging information, or to 2 to get more.</p></dd>


<dt id="arg--">...<a class="anchor" aria-label="anchor" href="#arg--"></a></dt>
<dd><p>optional arguments passed to other functions.  A common example
is to set <code>df</code>, for use in <code><a href="swN2.html">swN2()</a></code> calculations.</p></dd>

</dl></div>
    <div class="section level2">
    <h2 id="value">Value<a class="anchor" aria-label="anchor" href="#value"></a></h2>
    <p>None.</p>
    </div>
    <div class="section level2">
    <h2 id="see-also">See also<a class="anchor" aria-label="anchor" href="#see-also"></a></h2>
    <div class="dont-index"><p><code><a href="read.ctd.html">read.ctd()</a></code> scans ctd information from a file,
<code><a href="plot-ctd-method.html">plot,ctd-method()</a></code> is a general plotting function for <code>ctd</code>
objects, and <code><a href="plotTS.html">plotTS()</a></code> plots a temperature-salinity diagrams.</p>
<p>Other functions that plot oce data:
<code><a href="download.amsr.html">download.amsr</a>()</code>,
<code><a href="plot-adp-method.html">plot,adp-method</a></code>,
<code><a href="plot-adv-method.html">plot,adv-method</a></code>,
<code><a href="plot-amsr-method.html">plot,amsr-method</a></code>,
<code><a href="plot-argo-method.html">plot,argo-method</a></code>,
<code><a href="plot-bremen-method.html">plot,bremen-method</a></code>,
<code><a href="plot-cm-method.html">plot,cm-method</a></code>,
<code><a href="plot-coastline-method.html">plot,coastline-method</a></code>,
<code><a href="plot-ctd-method.html">plot,ctd-method</a></code>,
<code><a href="plot-gps-method.html">plot,gps-method</a></code>,
<code><a href="plot-ladp-method.html">plot,ladp-method</a></code>,
<code><a href="plot-landsat-method.html">plot,landsat-method</a></code>,
<code><a href="plot-lisst-method.html">plot,lisst-method</a></code>,
<code><a href="plot-lobo-method.html">plot,lobo-method</a></code>,
<code><a href="plot-met-method.html">plot,met-method</a></code>,
<code><a href="plot-odf-method.html">plot,odf-method</a></code>,
<code><a href="plot-rsk-method.html">plot,rsk-method</a></code>,
<code><a href="plot-satellite-method.html">plot,satellite-method</a></code>,
<code><a href="plot-sealevel-method.html">plot,sealevel-method</a></code>,
<code><a href="plot-section-method.html">plot,section-method</a></code>,
<code><a href="plot-tidem-method.html">plot,tidem-method</a></code>,
<code><a href="plot-topo-method.html">plot,topo-method</a></code>,
<code><a href="plot-windrose-method.html">plot,windrose-method</a></code>,
<code><a href="plot-xbt-method.html">plot,xbt-method</a></code>,
<code><a href="plotScan.html">plotScan</a>()</code>,
<code><a href="plotTS.html">plotTS</a>()</code>,
<code><a href="tidem-class.html">tidem-class</a></code></p>
<p>Other things related to ctd data:
<code><a href="CTD_BCD2014666_008_1_DN.ODF.gz.html">CTD_BCD2014666_008_1_DN.ODF.gz</a></code>,
<code><a href="sub-sub-ctd-method.html">[[,ctd-method</a></code>,
<code>[[&lt;-,ctd-method</code>,
<code><a href="as.ctd.html">as.ctd</a>()</code>,
<code><a href="cnvName2oceName.html">cnvName2oceName</a>()</code>,
<code><a href="ctd.html">ctd</a></code>,
<code><a href="ctd-class.html">ctd-class</a></code>,
<code><a href="ctd.cnv.gz.html">ctd.cnv.gz</a></code>,
<code><a href="ctdDecimate.html">ctdDecimate</a>()</code>,
<code><a href="ctdFindProfiles.html">ctdFindProfiles</a>()</code>,
<code><a href="ctdFindProfilesRBR.html">ctdFindProfilesRBR</a>()</code>,
<code><a href="ctdRaw.html">ctdRaw</a></code>,
<code><a href="ctdRepair.html">ctdRepair</a>()</code>,
<code><a href="ctdTrim.html">ctdTrim</a>()</code>,
<code><a href="ctd_aml_type1.csv.gz.html">ctd_aml_type1.csv.gz</a></code>,
<code><a href="ctd_aml_type3.csv.gz.html">ctd_aml_type3.csv.gz</a></code>,
<code><a href="d200321-001.ctd.gz.html">d200321-001.ctd.gz</a></code>,
<code><a href="d201211_0011.cnv.gz.html">d201211_0011.cnv.gz</a></code>,
<code><a href="handleFlags-ctd-method.html">handleFlags,ctd-method</a></code>,
<code><a href="initialize-ctd-method.html">initialize,ctd-method</a></code>,
<code><a href="initializeFlagScheme-ctd-method.html">initializeFlagScheme,ctd-method</a></code>,
<code><a href="oceNames2whpNames.html">oceNames2whpNames</a>()</code>,
<code><a href="oceUnits2whpUnits.html">oceUnits2whpUnits</a>()</code>,
<code><a href="plot-ctd-method.html">plot,ctd-method</a></code>,
<code><a href="plotScan.html">plotScan</a>()</code>,
<code><a href="plotTS.html">plotTS</a>()</code>,
<code><a href="read.ctd.html">read.ctd</a>()</code>,
<code><a href="read.ctd.aml.html">read.ctd.aml</a>()</code>,
<code><a href="read.ctd.itp.html">read.ctd.itp</a>()</code>,
<code><a href="read.ctd.odf.html">read.ctd.odf</a>()</code>,
<code><a href="read.ctd.odv.html">read.ctd.odv</a>()</code>,
<code><a href="read.ctd.saiv.html">read.ctd.saiv</a>()</code>,
<code><a href="read.ctd.sbe.html">read.ctd.sbe</a>()</code>,
<code><a href="read.ctd.ssda.html">read.ctd.ssda</a>()</code>,
<code><a href="read.ctd.woce.html">read.ctd.woce</a>()</code>,
<code><a href="read.ctd.woce.other.html">read.ctd.woce.other</a>()</code>,
<code><a href="setFlags-ctd-method.html">setFlags,ctd-method</a></code>,
<code><a href="subset-ctd-method.html">subset,ctd-method</a></code>,
<code><a href="summary-ctd-method.html">summary,ctd-method</a></code>,
<code><a href="woceNames2oceNames.html">woceNames2oceNames</a>()</code>,
<code><a href="woceUnit2oceUnit.html">woceUnit2oceUnit</a>()</code>,
<code><a href="write.ctd.html">write.ctd</a>()</code></p></div>
    </div>
    <div class="section level2">
    <h2 id="author">Author<a class="anchor" aria-label="anchor" href="#author"></a></h2>
    <p>Dan Kelley</p>
    </div>

    <div class="section level2">
    <h2 id="ref-examples">Examples<a class="anchor" aria-label="anchor" href="#ref-examples"></a></h2>
    <div class="sourceCode"><pre class="sourceCode r"><code><span class="r-in"><span><span class="kw"><a href="https://rdrr.io/r/base/library.html" class="external-link">library</a></span><span class="op">(</span><span class="va"><a href="https://dankelley.github.io/oce/">oce</a></span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="fu"><a href="https://rdrr.io/r/utils/data.html" class="external-link">data</a></span><span class="op">(</span><span class="va">ctd</span><span class="op">)</span></span></span>
<span class="r-in"><span><span class="fu">plotProfile</span><span class="op">(</span><span class="va">ctd</span>, xtype <span class="op">=</span> <span class="st">"temperature"</span><span class="op">)</span></span></span>
<span class="r-plt img"><img src="plotProfile-1.png" alt="" width="700" height="700"></span>
<span class="r-in"><span></span></span>
</code></pre></div>
    </div>
  </main><aside class="col-md-3"><nav id="toc" aria-label="Table of contents"><h2>On this page</h2>
    </nav></aside></div>


    <footer><div class="pkgdown-footer-left">
  <p>Developed by Dan Kelley, Clark Richards.</p>
</div>

<div class="pkgdown-footer-right">
  <p>Site built with <a href="https://pkgdown.r-lib.org/" class="external-link">pkgdown</a> 2.1.0.9000.</p>
</div>

    </footer></div>





  </body></html>

