Animations in R with gganimate

Поделиться
HTML-код
  • Опубликовано: 29 янв 2025

Комментарии • 36

  • @RProgramming101
    @RProgramming101  4 месяца назад +1

    Get my FREE cheat sheets for R programming and statistics (including transcripts of these lessons) here: www.learnmore365.com/pages/membership-r-programming-data-visualization-and-research-methods

  • @Svykle
    @Svykle 6 месяцев назад +1

    Please never stop making R videos. You are the best and it’s invaluable information. Can you maybe make a video how to do R automation ? Like with Bash?

  • @andresrengifo7801
    @andresrengifo7801 7 месяцев назад +1

    Cada tanto R programming nos recuerda el inmenso potencial y uso de R, Gracias.

  • @KarolKarasiewicz
    @KarolKarasiewicz 7 месяцев назад +3

    Cool trucks. Explained in 5 mins! Great job, thanks.

  • @NattyGism
    @NattyGism 7 месяцев назад +2

    You just make me keep falling for R. Thanks Greg

  • @Katiapunchh
    @Katiapunchh 4 дня назад

    I'm loving it!!!

  • @henry-zh3rv
    @henry-zh3rv 7 месяцев назад

    Wow this is lovely. I will use this today. Thanks Greg!

  • @Kinghercules
    @Kinghercules Месяц назад +1

    Ok, what do you do when its not working?
    It says "file_renderer()` failed to copy frames to the destination directory"

  • @emmanuelgk4663
    @emmanuelgk4663 26 дней назад +1

    getting this error :
    Warning message:
    `file_renderer()` failed to copy frames to the destination directory
    how do I get past this?

  • @michaelmakomere1515
    @michaelmakomere1515 6 месяцев назад

    I was using python in my research but now am back to R keep going

  • @WahranRai
    @WahranRai 2 месяца назад +1

    You dont need to use pipe !
    Keep your code readable and understandable like 3:32

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 7 месяцев назад +1

    Very nice! gganimate is sort of like a flip-book. Flip the pages and get movement. I would like to see this done with maps.

    • @RProgramming101
      @RProgramming101  7 месяцев назад +2

      Ooooh nice idea - animation with maps (I hadn't thought of that!). Let's do it!!

  • @Svykle
    @Svykle 6 месяцев назад

    Is there a way to pause the animation or make a slider?

  • @Dee10294
    @Dee10294 7 месяцев назад +2

    Boom Shaka lala
    Nice one!

  • @data_survival
    @data_survival 7 месяцев назад +4

    This is great....

  • @roadtoplaton590
    @roadtoplaton590 7 месяцев назад +1

    Hello, could anyone help me?
    I've been trying this code, and instead of showing the animated plot in the Viewer pan, I get 100 png files saved in my working directory
    Would you know how to fix it?

    • @i_tir_dan
      @i_tir_dan 4 месяца назад

      I have the same issue :(

    • @roadtoplaton590
      @roadtoplaton590 4 месяца назад

      @@i_tir_dan I fixed it using other packages, I'll paste the code in another comment so you can try it

    • @roadtoplaton590
      @roadtoplaton590 4 месяца назад

      @@i_tir_dan library(tidyverse)
      library(gganimate)
      library(babynames)
      library(gapminder)
      library(viridis)
      library(RColorBrewer)
      library(gifski)
      library(magick)
      #Babynames
      babynames %>%
      filter(name %in% c("James", "Paul", "Andrew", "John")) %>%
      filter(sex=="M") %>%
      ggplot(aes(x=year,
      y=n,
      group=name,
      color=name)) +
      geom_line(linewidth = 1.5) +
      theme_bw() +
      scale_color_viridis(discrete = TRUE) +
      labs(title = "Popularity of American names in the previous Year",
      x = "",
      y = "",
      color = "Names")+
      theme(plot.title = element_text(size =10,
      color = "steelblue")) +
      transition_reveal(year)
      anim_save("aaa.gif",animation = last_animation(), path=NULL)

  • @psicologiajoseh
    @psicologiajoseh 7 месяцев назад

    Is there R for macs?

  • @pipertripp
    @pipertripp 7 месяцев назад +1

    Very cool and super straight-forward. Have you played around with plotly in R?

    • @RProgramming101
      @RProgramming101  7 месяцев назад

      hi @pipertripp - yes, I LOVE plotly and have a video almost ready to go on that. Absolutely lovely stuff. Glad you enjoyed this one.

  • @CanDoSo_org
    @CanDoSo_org 7 месяцев назад

    So cool!

  • @Anonymouslearner454
    @Anonymouslearner454 7 месяцев назад

    Wow❤

  • @PhetoleRamatapa
    @PhetoleRamatapa 7 месяцев назад

    babynames & gapminder datasets missing in R

    • @coderanger7708
      @coderanger7708 6 месяцев назад

      You have to download the package to use them

  • @alvarorodriguez6418
    @alvarorodriguez6418 7 месяцев назад

    nice chanel, thank you

    • @RProgramming101
      @RProgramming101  7 месяцев назад

      Thanks and welcome - glad you like it.. :)

  • @Hecki_A
    @Hecki_A 7 месяцев назад +2

    I am the first to see this video ... yeah 😅

    • @RProgramming101
      @RProgramming101  7 месяцев назад +1

      haha - well thanks for watching!! :)