Making a bar graph in RStudio (ggplot2)

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

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

  • @carolinehaddon3148
    @carolinehaddon3148 Месяц назад

    Hi Matthew, Do you know how I can add the number values on the top of each bar- using ggplot.
    Thank you very much.

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

    Hi Matthew,
    Thank you very much for the informative video!
    When looking at your dataset, is it possible to plot graphs for height, wt_weight, moisture, etc all at once? Without having to change the code little by little for all the result.

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

      Thank you for the feedback! The short answer to your question is yes! It would take some adjustments in the file that you input, or the use of dplyr to arrange your data correctly and then facet_wrap within ggplot2. I will try to make a video soon to address this :)

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

      ​@@ecomattp Thank you so much for the reply! Looking forward to all your upcoming videos :D

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

    Right away I got "Warning message:
    package ‘ggplot2’ was built under R version 4.1.2 " :(

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

      Is this data set available so that we can follow along?

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

      @@nf3922 Warnings are different from error messages in RStudio, so ggplot2 should still work!
      The dataset is not available unfortunately, but it should work similarly with pre-loaded datasets such as iris in RStudio. Keeping that in mind I will aim to use pre-loaded data in future videos!
      I hope this helps.