-------------------------------------------</span>

<span class="co"># import cleaned EMA mood study data --------------------------</span>
<span class="kw">load</span>(<span class="st">&quot;data/cleaned/ema.Rda&quot;</span>)

<span class="co"># create and save Figure 1: EMA mood data, of P001 ------------ </span>
d &lt;-<span class="st"> </span><span class="kw">subset</span>(ema, ID <span class="op">==</span><span class="st"> &quot;P001&quot;</span> <span class="op">&amp;</span><span class="st"> </span><s