Displaying 1 to 1 from 1 results

transformr - Smooth Polygon Transformations

  •    R

If you've ever made animated data visualisations you'll know that arbitrary polygons and lines requires special considerations if the animation is to be smooth and believable. transformr is able to remove all of these worries by expanding tweenr to understand spatial data, and thus lets you focus on defining your animation steps. transformr takes care of matching shapes between states, cutting some in bits if the number doesn't match between the states, and ensures that each pair of matched shapes contains the same number of anchor points and that these are paired up so as to avoid rotation and inversion during animation. transformr supports both polygons (with holes), and paths either encoded as simple x/y data.frames or as simpel features using the sf package.