Using lubridate and ggplot2 to work with dates in R (CC234)

แชร์
ฝัง

ความคิดเห็น • 29

  • @Riffomonas
    @Riffomonas  2 ปีที่แล้ว +4

    Something I forgot to mention in the video was that at the end I ran renv::snapshot() to update my renv project with ggtext as a dependency.

  • @luisacuna1729
    @luisacuna1729 2 ปีที่แล้ว +3

    This tutorial is not only the best video for know how to use lubridate and ggplot, its a masterpice of how to creat great plots-

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว +1

      Thanks Luis! That is very kind of you to say 🤓 thanks for watching

  • @SuperDashdash
    @SuperDashdash 2 หลายเดือนก่อน

    Sir, I have always been thrilled by your R techniques and the way of your explanation. Your videos have caused me to switch to R [and of course RStudio] from Python [Jupyter] literally captivated me in enjoying analytics using R. I am working in Aerospace Industry. While the organization leverages a couple of premium visualization tools even to analyze exploratorily, I, after having got lightning stuck by your amazing videos, have been using ggplot extensively along with my basic statistical knowledge and of course teaching my colleagues. Thank you, @Riffomonas. Please keep posting more videos to enlighten some of thirsty analysts like me.

    • @Riffomonas
      @Riffomonas  2 หลายเดือนก่อน

      Thanks for your very kind comment!

  • @PaoloCondo
    @PaoloCondo ปีที่แล้ว

    Thank you so much for your amazing videos. I hope our comments help the algorithm put your videos on top!

  • @AliMBaba-do2sl
    @AliMBaba-do2sl 2 ปีที่แล้ว +1

    Extra ordinary... Great job!

  • @brianwood9610
    @brianwood9610 2 ปีที่แล้ว +2

    Another great episode. What would be very cool to do is take this data and try and forecast precipitation using an arima time series model. Thats prob going to be a few videos.

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว

      Hah! I might need to produce another video… 🤓

    • @brianwood9610
      @brianwood9610 2 ปีที่แล้ว

      @@Riffomonas happy to jump in and help hahaha

  • @TrentTube
    @TrentTube ปีที่แล้ว

    Fantastic. Thanks for your content!

  • @whalerman2689
    @whalerman2689 2 ปีที่แล้ว

    You are the best! It was very fun and useful, as always!

  • @jjsantosjj1
    @jjsantosjj1 ปีที่แล้ว

    Thank you very much!! One question, do you know how to have different date_formats depending on the date? I mean: you have a timeseries which is hourly but I want to show in the x-axis for example: "17/05/2023", "06:00", "12:00", "18:00", "21:00", "18/05/2023", "06:00"... and so on

  • @haraldurkarlsson1147
    @haraldurkarlsson1147 2 ปีที่แล้ว

    Nice presentation. It takes quite a bit of work to tidy up the plot in the end. As I have mentioned earlier I have data from another station here in the upper midwest. However, the station stopped operating in 2005 so I used 2004 as my reference year. The data streches back to 1984 and what I see is actually is that the first six month are if anything drier. Note we are dealing with precipation but have happens if we include snow for the winter months?
    I did mention in a previous message that I has missing tmax data in the early 1900 and it looked quite serious. However, when I inspected the original data with the skimr and vizdat packages I found in fact that only 1 year was missing all the data - not just tmax. It might be a good idea to check the data for "missingness" before diving into extended analysis. That was the lesson I learned.
    Finally, some on mention that a video/exercise on time series analysis might be fun. I agree. By the way there is an interesting pacakge for dealing with time in R called padr. It might be worth looking at.
    Thanks.

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว

      They convert snow into precipitation equivalents by melting it. Make sure you saw my note in the video that what I initially had removed all of the February data

    • @haraldurkarlsson1147
      @haraldurkarlsson1147 2 ปีที่แล้ว

      Makes sense. The term precipitation is the broad term.

  • @tekalegn_amanuel_1
    @tekalegn_amanuel_1 2 ปีที่แล้ว +1

    Everything is cool! Thanks!

  • @PhilippusCesena
    @PhilippusCesena 2 ปีที่แล้ว +1

    Thank you!

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว

      You’re welcome! 🤓

  • @caseyj1144
    @caseyj1144 2 ปีที่แล้ว +1

    My local data has other years with big gaps in it. If I wanted to check for complete years (every month represented at least 1 time in the year) I would use a window function in sql -- do you know a good way to query this in R? The closest thing I can think of is to use some sort of summarize len(year) and then make an assumption that I should have at least 300 datapoints/year, otherwise drop it

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว

      I’d do group_by, mutate and filter

  • @sven9r
    @sven9r 2 ปีที่แล้ว +1

    Since you didn't want to hard code certain things in the title one could do this for the blue text as well:
    value_today

    • @Riffomonas
      @Riffomonas  2 ปีที่แล้ว

      Yes! I was thinking about this too 🤓

  • @haoxu7437
    @haoxu7437 9 หลายเดือนก่อน

    a smart move with the "glue" function and create the fake year '2022'

  • @djangoworldwide7925
    @djangoworldwide7925 2 ปีที่แล้ว +1

    Friday being the 6th day is a Jewish plot! Ita called using the jewish:: package 😅