Visualizing correlation with double y-axes using the ggplot2 R package (CC235)

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

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

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

    Thanks Pat, It's so helpful. I enjoy how you explain and your pedagogical approach.

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

      My pleasure thank for watching!🤓

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

    Thank you for a great tutorial Prof. Pat.
    I live in Bangkok, Thailand. There is a correlation between tmax (average) and prcp with p-value = 2.081e-05 and cor = -0.49.

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

    Another terrific installment. Thanks for reminding me about "cor.test." I almost never report p-values and I should. Also reminded me why dual y-axes are flawed.

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

      Fantastic- thanks for watching!

  • @PaulYoung-r8g
    @PaulYoung-r8g 3 หลายเดือนก่อน +1

    This was great! Thank you

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

      Thanks for watching - I'm glad you enjoyed it!

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

    You are a master. Thanks for your detailed explanations!

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

    Great tutorial; thank you for sharing!

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

      Thanks! Glad you enjoyed the video🤓

  • @md.izazulhaq
    @md.izazulhaq ปีที่แล้ว

    You're the best! Loved your content. Please make a video tutorial on how to convert irregular daily/fortnightly timesereis with lots of NA's and mutlple varibles into regular motntly timeserie data.

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

    Pat! It was a nice and helpful video, Thank you so much. I have a question: It is possible to do figures with double X-axes in ggplot? As you mentioned in the video the best option is to show the variables in different panels, but sometimes when you work with hydroclimatological variables could be useful to have a double X-axis.

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

      Great! You would do the same things I did but with the x axis. Still not advised though. Better to use facets…

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

    I have seen much worse. Plots with four variables on the same plot. On read from the left side up (temp I belive), another read on the right side (precip). The third variable (vegitation) was added to the top part but without a scale. Finally the lower half of the graph was in meters and showed the depth of erosion. All of this plotted against latitude along the x. I think if anyone can read this monstrosity they should get a medal for the "worst" plot.

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

      Lol there’s some climate change figures out there like that. Scary stuff🤓

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

    Hi, i want to sum each five (5) days cumulative precipitation using R. any help?

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

    Thanks Pats

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

    Can you please do a correlation visualization of species from any metagenomic dataset? Because with a lot of species, the visualization becomes challenging, would like to see if it can be done in a better way.

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

      Thanks Vikas! I don't think i'll be coming back to microbiome data analysis any time soon. As always, I'd suggest starting with figuring out the biological question you are trying to answer and go from there. So, what do you expect a correlation analysis to show? I'd build a visual around that question. If you just want to show a big ball of nodes and edges indicating correlations, then yeah, it's going to look horrible 🤣 But I'd hope you might have a better question!

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

    In 14:11, you should have remembered to subtract tmax_min. It should be divided by (tmax_max - tmax_min).

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

    I need help on plotting classic SPI