Grouped stacked barchart for individuals using ggplot2 with geom_col and facet_grid (CC106)

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

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

  • @rafaellopezmartinez6200
    @rafaellopezmartinez6200 3 года назад +1

    Just what I needed!!!! thanks a lot!!! Yesterday I was trying to figure out how to combine de "dodge" and the "stack" positions for geom_bar() function to achieve the goal to have groups of stacked barplots one beside each other. This solution is really elegant and clever, I'm not an expert in R but I use it a lot. Again thank you so much.

    • @Riffomonas
      @Riffomonas  3 года назад

      My pleasure- glad it helped!

  • @Riffomonas
    @Riffomonas  3 года назад +2

    I think this will be the last time I touch stacked barcharts for a while. Anything else you would do to improve this type of visual?

  • @sven9r
    @sven9r 3 года назад +2

    Pat, you are very wrong my friend. You are very entertaining and the way you approach things is very inspiring :)

    • @Riffomonas
      @Riffomonas  3 года назад

      Hey Sven - you're too kind - thanks for watching!

    • @JOHNSMITH-ve3rq
      @JOHNSMITH-ve3rq 3 года назад +1

      Absolutely agree. Just a wonderful channel. Always learn something new.

    • @Riffomonas
      @Riffomonas  3 года назад

      Hi John - thanks so much! Not sure it's clear, but I'm learning a lot too 😂

  • @yaqinguo6125
    @yaqinguo6125 3 года назад +1

    Awesome video.Thanks a lot!
    But I am wondering is that possible to reduce the space between labels and x axis.?

    • @Riffomonas
      @Riffomonas  3 года назад +1

      Thanks - you’d need to experiment with the options in the theme function

    • @yaqinguo6125
      @yaqinguo6125 3 года назад

      Yeah thanks , I figured it out