Creating a broken x-axis using only the ggplot2 package in R (CC316)

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

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

  • @asolisca
    @asolisca 11 дней назад +1

    I always wondered how one would achieve this in ggplot2. Incredibly original and amazing work as always!!! Thanks a lot!

    • @Riffomonas
      @Riffomonas  11 дней назад +2

      My pleasure! I'm sure there's at least one package to do the same thing, but I don't have plans to generate broken axes and would rather strengthen my ggplot2 muscles than learn something I'll never use 🤣

  • @josuedrew
    @josuedrew 11 дней назад

    Great work ! This looks clean.

  • @rexevan6714
    @rexevan6714 11 дней назад +1

    yeah, the break looks good, but I think it often will mislead people who didn't pay enough attention towards the plot.

    • @Riffomonas
      @Riffomonas  11 дней назад

      Thanks for watching! 🤓

  • @r3lativ
    @r3lativ 11 дней назад

    Check out the ggbreak package.

    • @Riffomonas
      @Riffomonas  10 дней назад

      Meh. Thanks for the recommendation, but I really don't think people should be breaking their axes🤓

  • @OlawaleQuadriOgunsola
    @OlawaleQuadriOgunsola 11 дней назад

    Nice video! I have seen this in several papers and imagine how this could be achieved in ggplot. Thank you very much. I have another hack 😊 now!
    If you don't mind, would you like to make a plot for discharge (at the bottom x-axis (typical plot layout), with primary y-axis (typical plot layout)) and precipitation (at the upper x-axis and secondary y-axis)?
    Thank you very much. I have learned a lot from watching your channel making sense from the data without pre-written codes.

    • @Riffomonas
      @Riffomonas  11 дней назад

      Not sure I totally understand what you're asking about, but if you want two y-axes, here's an example ruclips.net/video/ir-NMcrYD-I/видео.html

    • @OlawaleQuadriOgunsola
      @OlawaleQuadriOgunsola 11 дней назад

      ​thank you for your reply. I have seen the video you shared close to two years now.
      The summary of my question is that is it possible to plot (e.g., column bar) on the bottom and up of x-axis for the same plot using ggplot?
      Can I send the picture of what I am saying to you via the email you use to share updates with us?

    • @Riffomonas
      @Riffomonas  11 дней назад

      @@OlawaleQuadriOgunsola An email or a link here of an example would be great - thanks!