Coder Social home page Coder Social logo

Comments (3)

yutannihilation avatar yutannihilation commented on June 11, 2024

It seems transition_reveal() skips some data points for some reason?

library(string2path)
library(ggplot2)
library(gganimate)

d <- string2path("&", "Arial", tolerance = 1e-4)
d <- tibble::rowid_to_column(d)
d2 <- dplyr::select(d, !rowid)

red <- alpha("red", 0.2)

ggplot(mapping = aes(x, y)) +
  geom_path(data = d2, aes(group = path_id), colour = red) +
  geom_point(data = d2, colour = red) +
  geom_path(data = d, aes(group = path_id)) +
  geom_point(data = d) +
  theme_minimal() +
  coord_equal() +
  transition_reveal(rowid)
#> `geom_path()`: Each group consists of only one observation.
#> ℹ Do you need to adjust the group aesthetic?
#> `geom_path()`: Each group consists of only one observation.
#> ℹ Do you need to adjust the group aesthetic?

Created on 2022-12-17 with reprex v2.0.2

from gganimate.

mccarthy-m-g avatar mccarthy-m-g commented on June 11, 2024

See also the reprex in #445 which was broken in v1.0.8

from gganimate.

ddeannd avatar ddeannd commented on June 11, 2024

Figured I would add to this for another test case. I wish I checked here before fumbling around for a few hours trying to figure out what was wrong. A simple line chart with geom_line() also suffers from this bug, but only on the final frame from what I can tell. Every line but one will revert to it's previous value, no matter how long the x axis is. Here is an example:

test

I made a post on stackoverflow regarding this, as well. https://stackoverflow.com/questions/74971922/gganimate-transition-reveal-with-geom-line-breaking-on-the-final-frame

from gganimate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.