rceCode r"><code class="sourceCode r"><span class="co"># Plot four-week location history of emaph location data</span>
<span class="kw">library</span>(ggplot2)
<span class="kw">library</span>(emaph)

d &lt;-<span class="st"> </span><span class="kw">subset</span>(locations,
            accuracy <span class="op">&lt;=</span><span class="st"> </span><span class="dv">50</span> <span class="op">&amp;</span>
<span class="st">              </span>lon <span class="op">&gt;=</span><span class="st">  </span><span cla