er">3.2.5.2</span> Reshaping Data with the <strong>tidyr</strong> Package<a href="get-started.html#tidyr" class="anchor-section" aria-label="Anchor link to header"></a></h4>
<p>In case you need to reshape a data set to make it work with <strong>ggplot2</strong>, you can use the functions <code>pivot_longer()</code> and <code>pivot_wider()</code> from the <a href="https://tidyr.tidyverse.org/"><strong>tidyr</strong> package</a> <span class="citation">(<a href="#ref-tidyr">Wickham and Girlich 2022</a>)</span>