Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support gifs in plot viewer #1581

Open
katrinabrock opened this issue Dec 23, 2024 · 0 comments
Open

Support gifs in plot viewer #1581

katrinabrock opened this issue Dec 23, 2024 · 0 comments

Comments

@katrinabrock
Copy link

Is your feature request related to a problem? Please describe.
I'm generating gifs of plots, not just PNG/SVG. I'd like to see them in the same way that still plots show up.

Additional context
Example code:

library(ggplot2)
library(gganimate)
anim <- ggplot(data.frame(x=1:10, y=rnorm(10)), aes(x=x, y=y)) +
            geom_point() +
            transition_time(x)
animate(anim)

I'm using gifski renderer. When I run this code, I get what looks like viewer trying to view a binary file:
image

I can see that the gif was successfully rendered into the R temporary directory and if I select it, the animation does show up correctly in VSCode.

image

I've tried using httpdg plot viewer and httpdg web page. httpdg supports gif, and many other formats in addition to png and svg, so not sure where the limitation is coming from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant