/span>, col <span class="op">=</span> <span class="fl">2</span><span class="op">)</span></span></code></pre></div>
<p>We can visualize the tidal constituent ellipses, by first creating a
function that will draw an ellipse, and then looping through the
constituents from the fit and adding them to a hodograph of the
currents:</p>
<div class="sourceCode" id="cb24"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="va">ellipse</span> <span class="op">&lt;-</span> <span class="kw">f