Beautiful bar charts in R

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

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

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

    You can find materials from this vid (and others) at github.com/equitable-equations/youtube.

  • @pinklemonade6597
    @pinklemonade6597 Месяц назад +1

    Thank you so much for these videos ive learnt so much in such a short time!

  • @geogebraphtraining2501
    @geogebraphtraining2501 2 месяца назад

    Great job! Thank you very much!

  • @theexpatteacher8255
    @theexpatteacher8255 Год назад +3

    Thanks for the very informative video. I'm teaching my students bar charts and this helps. One note: When you change the x and y axis,
    the *Total Employed RN* has to be in a forward tick, this " ` ", which had me confused for a bit.

    • @lenord123
      @lenord123 Год назад

      I could not get it to work until I read this. Thanks for posting it.

  • @pinklemonade6597
    @pinklemonade6597 Месяц назад +1

    It’s probably just me not but in case anyone got stuck when trying to add total employed rn, remember to use backticks not quotes!

  • @AllThingsAnatomy
    @AllThingsAnatomy Месяц назад +1

    Awesome Video! How could I add margin text on a bar chart? I keep getting error "plot.new has not been called yet" when using mtext

  • @rajendraregmi5407
    @rajendraregmi5407 Год назад +1

    I cannot do the last part of your video. I am a great fan of your video and will follow you. Thank you

  • @romanvasiura6705
    @romanvasiura6705 Год назад

    Thank you!

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

    I am not able to access the Carseats datasets.

  • @arkhust6775
    @arkhust6775 10 месяцев назад

    Hi! I am new to R, your tutorials are helping me a lot to learn how to navigate through it, thank you! I was wondering, when we dont give "y" a value, on the charts we see the word "count" , I was wondering, is there any way to remove that word?

    • @EquitableEquations
      @EquitableEquations  10 месяцев назад

      Yep, you want to add a "labs" argument. There's a help file for it.

    • @arkhust6775
      @arkhust6775 10 месяцев назад

      @@EquitableEquations ah i see, thank you! .

  • @cathrineolsen3351
    @cathrineolsen3351 Год назад

    Hi there! Im really enjoying your videos. I am trying to reproduce your Nurse examples but my plot looks very weird compared to your, though I have checked multiple times that my code is the same.
    ggplot(nurses_2020, aes(x= State,
    y= "Total Employed RN")) +
    geom_col()

    Basically, the plot i get is where all the state bars go to the exact same height horizontally.
    Also, when I go into your folder to look at your Rscript it says x = Total Employed RN and y = State, but that looks super wrong too.

    • @EquitableEquations
      @EquitableEquations  Год назад +1

      Hi! You need to use a single tick ` and not a quotation mark ". R thinks you're specifying a character vector of length 1.

  • @user-zj7cr2pg7c
    @user-zj7cr2pg7c 11 месяцев назад

    good, watched 2023.10.8

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

    Is it possible to make a bar plot where each colored bar has its own scaled y-axis? I’m trying to plot the density of two different species on the same plot but they’re on completely different “magnitudes” (0.1 vs 0.001).

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

      You might use a logarithmic scale for the y-axis with scale_y_continuous().

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

      @@EquitableEquations That worked well, thank you!

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

    Sir can u share your scripts in description Link? Thanks