Composing two box plots with significance lines in R's ggplot2 and patchwork (CC310)

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

КОМЕНТАРІ • 14

  • @rabinkc831
    @rabinkc831 24 дні тому +1

    It is so amazing to watch these videos. I have been using ggplots for over 7 years now, yet I learn so much just watching these.

    • @Riffomonas
      @Riffomonas  24 дні тому

      wonderful! i'm still learning new stuff too 🤓

  • @DM-py7pj
    @DM-py7pj Місяць тому +4

    Absolutely love these tutorials. Please keep them coming.

    • @Riffomonas
      @Riffomonas  Місяць тому

      Thanks! I've really enjoyed seeing the positive reactions to these videos 🤓

  • @anihristova7789
    @anihristova7789 Місяць тому

    I came across this at just the right time. Thank you!

    • @Riffomonas
      @Riffomonas  Місяць тому

      Wonderful - glad it was helpful. A new video will be up tomorrow showing a different way to make a pretty similar figure

  • @Svykle
    @Svykle 11 днів тому

    I love these videos. I wonder if you can make some of those election graphs from New York Times (needle graphs, etc ).

    • @Riffomonas
      @Riffomonas  10 днів тому

      Thanks! If you follow my newsletter, tomorrow's will include some election data. That would have the video coming out in early January. But I can see about doing some more if people don't yell at me 🤣

  • @kanadroy6925
    @kanadroy6925 22 дні тому

    Please do a detailed tutorial on DSM (Digital Surface Modelling)

    • @Riffomonas
      @Riffomonas  20 днів тому

      Thanks for the suggestion, I'm afraid that is a bit outside what I'm doing with data visualizations and reproducible research methods

  • @spacelem
    @spacelem Місяць тому

    Two things, the first is minor: the original boxplots are grey, but with a slightly darker grey on the border (I can see that would be easy enough to fix). More interesting is the second thing: on the original figure there's a black border between plots A and B. Is there a good way to control borders between subplots? What about if you're using facet_wrap or facet_grid?

    • @Riffomonas
      @Riffomonas  Місяць тому +1

      Good eyes! If you check out the code I posted in the accompanying blogpost, I did set the border of the boxplot to "darkgray". As for the divider line, I would probably use something like annotate("segment") and coord_cartesian(clip = "off") to put a line segment at the very bottom of the top panel.

    • @Riffomonas
      @Riffomonas  Місяць тому +4

      I couldn't help myself ;) I just went back and added the code to draw a line between the plots. You can find it at the link in the show description notes.

    • @spacelem
      @spacelem Місяць тому

      @@Riffomonas thank you! It's fascinating seeing how this all comes together.