Manipulating axes (position scales) for continuous and discrete data in ggplot2 (CC154)

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

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

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

    Believe it or not, I didn't actually cover everything there is to know about scale_x/y_discrete and scale_x/y_continuous. What else would you like to know about manipulating your axes?

  • @yacksumusha
    @yacksumusha 2 года назад +1

    You just made me figure out how to get unstuck in my data viz project. Thank you!!!

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

      Wonderful! Thanks for watching Amadeu 😊

  • @GardenCityHomestead
    @GardenCityHomestead 2 года назад +1

    You must have read my mind! I needed this information very much! I don't think I knew the correct terms to search for ... or else there isn't any decent info out there on this. Thank you!

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

      Wonderful! Did you find this by search? What terms did you use? I think “scales” is not super intuitive as a way to manipulate axes

    • @GardenCityHomestead
      @GardenCityHomestead 2 года назад +1

      @@Riffomonas I am subscribed to you. I found it because it showed up on my feed. I had been searching RUclips for "r axis" + any other terms I could think of. I used to be a Sr. Business Information analyst for Pfizer before my daughter was born. I am updating my skills now to get back into the field. I find your videos thorough and easy to follow. Thank you!

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

      Very cool - thanks for the insight! If you come across any Interesting datasets from your world, feel free to share! I’d love to expand the audience more beyond biologists

  • @ndipagbor7280
    @ndipagbor7280 2 года назад +1

    Video saved.

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

    Keep peeling that ggplot onion

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

      my eyes are watering! 😂

  • @md.masumbillah8222
    @md.masumbillah8222 2 года назад +1

    Hi FOR my case it came with that error 'Scale for 'y' is already present. Adding another scale for 'y', which will replace the
    existing scale" while i was trying to break y axis at some point. DO YOU have any advise, thanks

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

      HI! The general advise from data visualization practitioners is to not break an x- or y-axis since it can be deceiving to the audience. It is better to pick limits and comparisons that make it unnecessary. Based on this advice, ggplot2 makes it pretty hard to achieve.

  • @VictorPerez-jy9lf
    @VictorPerez-jy9lf 2 года назад +1

    Hello sir!! Thank you very much for the video, a question.
    When transposing my axes in a bar chart with coor_flip() and adjusting the configuration of my new axes and executing geom_shadowtext()..... I get the following error, Error: Discrete value supplied to continuous scale, how could I execute my bar graphic?

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

      Are you using scale_*_continuous vs scale_*_discrete? I’d check there by making sure you’re using the right function for the right axis. I find it is typically easier in the long run not to use coord_flip