Code Monkey home page Code Monkey logo

Comments (4)

yihui avatar yihui commented on July 28, 2024

Is this issue specific to blogdown? i.e. is it reproducible in a normal R Markdown document?

from blogdown.

gresch avatar gresch commented on July 28, 2024
  1. please find a working R Markdown/ notebook under [1]; cf. section animated plots
  2. the same for a blogdown version under [2]; cf. section animated plots

in the R markdown it is working as expected (animated GIF), for blogdown a number of static images is generated.

[1] https://cdn.rawgit.com/gresch/r_playground/52ebec03/gganimate/201611_gganimate_Packages%20functionality%20examples%20using%20Gapminder%20data.nb.html
[2] https://gresch.github.io/2016/11/22/201611_gganimate_packages_functionality_examples_using_gapminder_data/

from blogdown.

RobertMyles avatar RobertMyles commented on July 28, 2024

I've got this problem too, although it doesn't seem to be restricted to blogdown, it's also happening whenever I try to knit the document or when I published it as an RPub. When I try build_site() or serve_site(), I get an error:

Execution halted
Error in render_page(f) : 
  Failed to render '2017-05-22-earth.Rmd'

from blogdown.

yihui avatar yihui commented on July 28, 2024

I'm not very familiar with the codebase of gganimate, so I'll defer this issue to @dgrtwo. Before he chimes in, here is another method you can use, which requires the installation of FFmpeg:

```{r gapminder, fig.show='animate', ffmpeg.format='gif', dev='jpeg'}
library(gapminder)
library(ggplot2)
theme_set(theme_bw())
p <- ggplot(gapminder, aes(gdpPercap, lifeExp, size = pop, color = continent, frame = year)) +
  geom_point() +
  scale_x_log10()

library(gganimate)
gganimate(p)
```

from blogdown.

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.