>trunk</code>. What we want in this case is something <em>similar</em> to <code>geom_path()</code>, but instead of plotting paths in linear segments we want to draw Bézier curves. Conveniently for us, the ggforce package supplies the <code>geom_bezier()</code> function that does exactly this. All we need to do is make sure we specify the <code>group</code> aesthetic so that there is one curve per segment in the tree. Here’s the code for doing that:</p>
<div class="cell">
<div class="sourceCode cell-code"