Visualize Patterns With Calendars & ggplot2 | Step-By-Step Tutorial

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 18

  • @rappa753
    @rappa753  4 місяці тому +2

    Thank you for watching (and hopefully enjoying) my latest video. If you liked this video, I'm sure that you're also going to love my Data Visualization course. You can check it out at:
    Insightful Data Visualizations for "Uncreative" R Users at arapp.thinkific.com/courses/insightful-data-visualizations-for-uncreative-r-users
    Or if you want to learn about data cleaning, my Data Cleaning Master Class will teach you everything you need to know about data cleaning, working with Excel and JSON files, and dealing with text data as well as time data. If you want to get faster and better at making sense of your data, check out:
    Data Cleaning Master Class at data-cleaning.albert-rapp.de/

  • @muhammedhadedy4570
    @muhammedhadedy4570 3 місяці тому +1

    Wow, amazing as usual.
    Greetings from Egypt.
    Wish you all the best.
    ❤❤❤❤

    • @rappa753
      @rappa753  3 місяці тому +1

      Thank you ☺

  • @WilForDataScience
    @WilForDataScience 4 місяці тому +2

    As always, excellent video. Really intuitive and easy to follow. Thank you for this content Albert 👏

    • @rappa753
      @rappa753  4 місяці тому +2

      Thank you. That's such a kind feedback 🤗

  • @cleandata_sk
    @cleandata_sk 3 місяці тому +1

    nice video, i never though about this way of visualization of time series, very interesting!

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 3 місяці тому +1

    What do we do when there is no flight on a given day? I have some data were there is no data some days - perhpas because it was not recored. But still - is there a way ato add those. Finally, is there not some plot specifically for plotting count data on top of a calendar?

    • @rappa753
      @rappa753  3 місяці тому

      You can use the complete() function from the tidyr package for getting the full range of dates into your counts (just replace the default NA with a 0 in that case)

  • @djangoworldwide7925
    @djangoworldwide7925 4 місяці тому +1

    Im considering a transition to gnu-linix, specifically ubunto (lts version).
    Any chance to see a post/video on things to consider when using R on ubuntu? Im a windows user atm.

    • @rappa753
      @rappa753  3 місяці тому +1

      That's a neat idea. I will add it to my backlog of ideas 🤗 but it will probably take quite a while until I get to that topic.

  • @djangoworldwide7925
    @djangoworldwide7925 4 місяці тому

    hey you switched from blue to green! when did that happen

    • @rappa753
      @rappa753  3 місяці тому

      Around 8:30 😊

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 3 місяці тому

    Very interesting but when the code gets this long errors are prone to creep in. Why not chop it up and simply add pieces?

    • @rappa753
      @rappa753  3 місяці тому

      I've done that in the past but I've made the experience that shopping up a long ggplot code like this doesn't really help me and adds more overhead. But I guess it's a matter of preferred style

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 3 місяці тому

    Albert, I cannot recreate your plots. The calendar dates are all mixed up. I did find an alternative that is good enough for EDA. The output is not as nice as yours - that is hard to match. In the openair package (it is a package for air pollution studies) there is a function called calendarPlot(). That can used to create quick-and-dirty plots. It basically allows you to see if there is anything to look at before diving into a much more involved heatmap such as yours.

    • @rappa753
      @rappa753  3 місяці тому

      Ah that's a neat package. Didn't know about that yet 👍🏻 definitely a good idea to do something quick and simple before going down the road of a tailored chart

    • @rappa753
      @rappa753  3 місяці тому

      As for the dates being mixed up, can you share specifics or code? It's hard to debug without knowing more

    • @Follis_lecture_channel
      @Follis_lecture_channel 3 місяці тому

      @@rappa753 I had to change the date format to POSIX to get the correct week of the month