Make Beautiful Graphs in R: 5 Quick Ways to Improve ggplot2 Graphs

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 มิ.ย. 2024
  • Make Beautiful Graphs in R: 5 Quick Ways to Improve ggplot2 Graphs
    In this video, I'll show you a few different tips and tricks to style your ggplot2 graphs and make them less basic looking. With the help of a couple libraries, you can produce really clean and professional ggplot2 graphs without much effort!
    Code: github.com/abhimotgi/dataslic...
    ggthemes: yutannihilation.github.io/all...
    RColorBrewer palettes:www.datanovia.com/en/blog/the...
    Data: www.kaggle.com/neuromusic/avo...
    0:00 Intro
    0:34 Base graph
    1:04 Adding labels
    2:06 Setting a theme
    3:34 Emphasize data
    6:54 Change the colors
    8:32 Change the font
    9:49 Summary

ความคิดเห็น • 104

  • @AnnieCushing
    @AnnieCushing 2 ปีที่แล้ว +21

    This is top-shelf training. I wrote the book 'Making Data Sexy' but have struggled to make R data sexy. This tutorial armed me with the tools I need and put a fire under me to explore ggplot2's lesser-used arguments. Thank you.

    • @dataslice
      @dataslice  2 ปีที่แล้ว

      That’s really cool! Glad my video could help.

  • @davidcamacho5285
    @davidcamacho5285 3 ปีที่แล้ว +5

    I appreciate you taking the time to transform this data set into an appealing visualization in such short time!

  • @rebekahbrand5724
    @rebekahbrand5724 2 ปีที่แล้ว +3

    wow this is amazing!! thank you! you answered so many questions in 10 minutes that i would have needed hours to find the answers to... subscribed!

  • @douglaspiresmartins2955
    @douglaspiresmartins2955 3 ปีที่แล้ว +1

    This vid is on point, keep posting and we will be eternally grateful.

  • @jonathanfernandez8074
    @jonathanfernandez8074 4 ปีที่แล้ว +13

    This is truly amazing content. Goldmine. Also kudos, for articulating and conveying the process well :)
    P.S. Thank you for sharing this on Reddit. You earned a subscriber by doing so :)

    • @dataslice
      @dataslice  4 ปีที่แล้ว

      Glad you enjoyed it, and thanks for subscribing!

  • @lisaamante5384
    @lisaamante5384 2 ปีที่แล้ว

    Las Vegas, Nevada, USA: This was so awesome, very easy to follow, well explained, clearly and logically organized, great tips! Thanks!

  • @Davao420
    @Davao420 3 ปีที่แล้ว +8

    omg this was one of the clearest tutorial ever

  • @dylana5777
    @dylana5777 2 ปีที่แล้ว +4

    Great video, really like your presenting style! I'm just starting out in my data career and I've found getting R charts to look less generic quite a challenge. This was a huge help :)

    • @dataslice
      @dataslice  2 ปีที่แล้ว

      Glad I could help! :-)

  • @marianalunalopez7437
    @marianalunalopez7437 3 ปีที่แล้ว +2

    You made this very easy to understand and will definitely improve my graphs quite much!:)

  • @imdadood5705
    @imdadood5705 2 ปีที่แล้ว

    Wow! This is amazing! I would love to see more appealing R visualizations.

  • @DingDongGrahamBell
    @DingDongGrahamBell 6 หลายเดือนก่อน

    Thank YOU So MUCH!!! I've learned a lot about the ins-and-outs of ggplot creation.

  • @TheDataDigest
    @TheDataDigest 3 ปีที่แล้ว

    This was a really good video. Well structured and right on point. Thanks for the content!

  •  2 ปีที่แล้ว

    I didn't know about the font, thanks! Great video, very clear and easy to follow.

  • @sitendugoswami1990
    @sitendugoswami1990 3 ปีที่แล้ว

    short, succinct and effective! good job! Thanks

  • @aelhamamy
    @aelhamamy 3 ปีที่แล้ว

    Absolutely wonderful! Thanks a lot, man!

  • @idrisadeniji836
    @idrisadeniji836 2 ปีที่แล้ว

    I must confess that your videos are the most appealing and focus learning on R for me. Very concise, straight to point and interesting. please can you provide a link which has all your videos in one place so that i can follow chronologically. This is really what I need to become a pro in R. Thank you for your work.

  • @tello9504
    @tello9504 3 ปีที่แล้ว +1

    Thank you! Mucho amor desde México, great content 🦙

  • @erinkim1995
    @erinkim1995 4 ปีที่แล้ว +2

    this is awesome, learning so much! quality content!

    • @dataslice
      @dataslice  4 ปีที่แล้ว

      Glad you liked it! :-)

  • @mayakahn-abrams2326
    @mayakahn-abrams2326 2 หลายเดือนก่อน

    Insanely helpful!! Thank you!!

  •  3 ปีที่แล้ว

    Really good tutorial, no nonsense. 10/10

  • @MarcelloNesca
    @MarcelloNesca 4 ปีที่แล้ว +2

    Wow! I'm consider myself a newbie/intermediate skill with tidyverse, and I still find it incredible how easy you can make ggplots gorgeous. I guess this is my lack of coding experience, but I'm here to learn! Looking forward for more content, you got a subscriber!

    • @dataslice
      @dataslice  4 ปีที่แล้ว

      For sure - R can do some pretty neat stuff and I hope to make lots of videos showing off its potential! Thanks for subscribing!

  • @chipweir9731
    @chipweir9731 3 ปีที่แล้ว

    DUDE! Great tutorial, you're the man.

  • @leandrooliveira-adasa7274
    @leandrooliveira-adasa7274 3 ปีที่แล้ว

    Your explanation is awesome. Thank you to share excellent tips about ggplot. I really recommend.

  • @Andandos
    @Andandos 4 ปีที่แล้ว +1

    very nice and clear flow of information! GJ

  • @ehsansoleimani9747
    @ehsansoleimani9747 3 ปีที่แล้ว

    Amazing tutorial! Thank you so much

  • @kathrynwang4081
    @kathrynwang4081 4 ปีที่แล้ว

    This has been really useful for my data reports for work! Thank you 😊

    • @dataslice
      @dataslice  4 ปีที่แล้ว +1

      Glad it was helpful!

  • @Insipidityy
    @Insipidityy 4 ปีที่แล้ว

    Great, concise video! Learnt quite a few things even though I consider myself to be an intermediate ggplot2 user. Thanks for sharing!

    • @dataslice
      @dataslice  4 ปีที่แล้ว

      No problem-Thanks for watching!

  • @kidbbbenjamin
    @kidbbbenjamin 4 ปีที่แล้ว +2

    Really awesome video. I learned a lot!

    • @dataslice
      @dataslice  4 ปีที่แล้ว

      Glad you enjoyed it!

  • @franciso1273
    @franciso1273 4 ปีที่แล้ว +2

    Very clear! Thanks!

    • @dataslice
      @dataslice  4 ปีที่แล้ว

      Thanks for watching!

  • @pedromesquita8507
    @pedromesquita8507 2 ปีที่แล้ว

    Very consise and informative!!!

  • @IarukaSkYouk
    @IarukaSkYouk ปีที่แล้ว

    damn dude I'm learning alot here thank you for the tutorials man

  • @mar.i.o
    @mar.i.o ปีที่แล้ว

    Thank you very much for your awesome work 👏🏻

  • @olabisifayose7386
    @olabisifayose7386 ปีที่แล้ว

    Very helpful. Thanks

  • @thunkpieces5635
    @thunkpieces5635 4 ปีที่แล้ว +2

    This was really helpful! Thanks man

    • @dataslice
      @dataslice  4 ปีที่แล้ว

      No problem - glad you enjoyed it!

  • @1998marijn1998
    @1998marijn1998 3 ปีที่แล้ว +1

    This is a perfectly-paced tutorial. Great work.
    One comment: whenever you say a command out loud ('install dot packages with package name in quotes'), just type it. It's both faster and easier to understand for any command, basic or advanced.

  • @tuanlong8641
    @tuanlong8641 2 ปีที่แล้ว

    Excelent tutorial, man

  • @herrjaimejimenez
    @herrjaimejimenez 3 ปีที่แล้ว

    Amazing video ! Thanks a lot!

  • @alexandrebouvier7731
    @alexandrebouvier7731 2 ปีที่แล้ว

    Great tutorial ! :)

  • @jdlopez131
    @jdlopez131 2 ปีที่แล้ว

    I didn't know or cared enough to find out about fonts, but now that I do know, seems pretty cool

  • @MrArunavadatta
    @MrArunavadatta 2 ปีที่แล้ว

    Excellent guide

  • @Mamatin2
    @Mamatin2 3 ปีที่แล้ว

    This is just... Awesome

  • @josevelasco8946
    @josevelasco8946 2 ปีที่แล้ว

    Thank you so much, this video is amazing.

  •  3 ปีที่แล้ว +1

    Im currently going through the Coursera JHU Data Science Specialization and your videos are just what I needed to really understand some topics that were left lingering. Amazing job!

    • @dataslice
      @dataslice  3 ปีที่แล้ว

      Thank you! And I'm glad I could help!

    • @harkdjai1488
      @harkdjai1488 ปีที่แล้ว

      @@dataslice Got Up gdi

  • @williammendieta5427
    @williammendieta5427 3 ปีที่แล้ว

    Great video! Now Ggplot2 looks pretty easy!

  • @mabillycoxhbdias9329
    @mabillycoxhbdias9329 2 ปีที่แล้ว

    Thank you so much!

  • @Mr_nn23
    @Mr_nn23 3 ปีที่แล้ว

    Great content! Keep up the good work!

  • @douglasmangini8744
    @douglasmangini8744 3 ปีที่แล้ว

    awesome. Thank you very much!

  • @drazraut
    @drazraut 2 ปีที่แล้ว +1

    Did someone tell you that you're amazing?
    Just love your tutorials.
    Please do something on R Shiny

  • @th2315
    @th2315 2 ปีที่แล้ว

    omg great video, please make more

  • @mayconcristianobarbosa3666
    @mayconcristianobarbosa3666 ปีที่แล้ว

    NIce! Thank you!

  • @RomainCombs
    @RomainCombs 2 ปีที่แล้ว

    Perfect.

  • @funzaAcademy
    @funzaAcademy 3 ปีที่แล้ว

    Thank you

  • @88pianissimo90
    @88pianissimo90 10 หลายเดือนก่อน

    Good one

  • @jives.
    @jives. 3 ปีที่แล้ว

    lovely

  • @denizgursoy672
    @denizgursoy672 3 ปีที่แล้ว

    Fantastic ! You are epic

    • @dataslice
      @dataslice  3 ปีที่แล้ว

      Thanks a lot!

  • @user-zr6vv5dc8x
    @user-zr6vv5dc8x 3 ปีที่แล้ว

    Thank you very much. A question: can we change the fonts of title and subtitle?

  • @pujasharma8698
    @pujasharma8698 3 ปีที่แล้ว

    Thank you for an infromative video about ggplot. Could you provide a function to put R2 and pvalue in scatter plot automatically?

  • @Ibzd4
    @Ibzd4 2 ปีที่แล้ว +3

    I tried to download the dataset but its not the same as the example data that you have used in the video. In any case thanks for the help it was amazing

  • @andresespinoza9733
    @andresespinoza9733 3 ปีที่แล้ว

    you are so f***ing good god damn it!

  • @loquenderoHD
    @loquenderoHD 2 ปีที่แล้ว +2

    Hi, thanks for the video, it is very useful!!! However, I have a problem while installing the extrafont package. When I run the function "font_import" appears a lot of warnings on the console, and when I try to use the function "fonts()", the output is NULL. How can I fix this? Thanks in advance!!

  • @DM-py7pj
    @DM-py7pj 2 ปีที่แล้ว

    Thanks. What would have been the best way, without reproducing lots of the code, to produce the chart 5 times but in each chart have a different region be the thick line? Also, how to make just the dashed lines thinner?

  • @azarel7
    @azarel7 3 ปีที่แล้ว +1

    Excellent video. Btw, what is your RStudio theme?

    • @dataslice
      @dataslice  3 ปีที่แล้ว +2

      Thanks for watching! I'm using the Dracula theme that comes preinstalled.

    • @azarel7
      @azarel7 3 ปีที่แล้ว +1

      @@dataslice One more request, one of these days when you get time, can you please do a tutorial on tidy data? I'm pretty sure your take on it would also be well done just like this one.

    • @dataslice
      @dataslice  3 ปีที่แล้ว +2

      @@azarel7 Sure, I've had it as a video idea for a while but have a lot on the backlog -- hope I can get to it soon

  • @chrisarrow
    @chrisarrow 2 ปีที่แล้ว +1

    when I try to use the dataset in your description and plot it, I am getting 54 regions int the colour legend and equivalent number of lines. How come your graph only shows 5? Is the dataset different?

  • @ProfBoggs
    @ProfBoggs ปีที่แล้ว

    So is the assumption our data will always be in long format instead of wide format? I'm trying to figure out if the COLOR command will even work with wide format data.

  • @anaascua
    @anaascua ปีที่แล้ว

    Hello Dataslice! Thank you for sharing beautiful plots and videos
    I tried to replicate your first plot but I get this error:
    There were 50 or more warnings (use warnings() to see the first 50)
    > anim_save("gapminder graph.gif")
    Error: The animation object does not specify a save_animation method

  • @vistorinaamputu4682
    @vistorinaamputu4682 2 ปีที่แล้ว

    You are awesome :-))))))))))))))))))))))))))))

  • @CCastroA17
    @CCastroA17 3 ปีที่แล้ว +1

    I cannot apply the library of ggthemes. I can install it, but not run the library. Any idea on the problem?

    • @dataslice
      @dataslice  3 ปีที่แล้ว

      What error do you get when you do library(ggthemes)

  • @gubinguyen9679
    @gubinguyen9679 2 ปีที่แล้ว

    i did color = region, why it's always "object 'region' not found" ????

  • @davidl.9222
    @davidl.9222 2 ปีที่แล้ว

    How were you able to select 5 regions without specifying it in your ggplot?

    • @ea1766
      @ea1766 9 หลายเดือนก่อน

      I’m asking the same thing because mine selects all of time and it looks really messy

  • @rodrigocerna5756
    @rodrigocerna5756 3 ปีที่แล้ว

    Where can i get the avocado_data.csv. It's not in the github repository.

    • @dataslice
      @dataslice  3 ปีที่แล้ว

      I think this is where I got the data from www.kaggle.com/neuromusic/avocado-prices

  • @ibrahimo.s.4947
    @ibrahimo.s.4947 3 ปีที่แล้ว

    Dear experienced R-programmers, .
    I am a R-studio noob who uses R for bayesian statistics. I converted to R, because SPSS is kind of outdated in the science industry. I was watching this video because i wanted to plot a graph. Now comes the problem: when I want to use one of the GGthemes from yutannihilation.github.io/allYourFigureAreBelongToUs/ggthemes/ R can't find them. I have installed ggplot2 and read it. Could someone help me? I've already searched the Github and other forums.

    • @dataslice
      @dataslice  3 ปีที่แล้ว

      Did you install.packages('ggthemes') as well?

  • @Rainbowflower2002
    @Rainbowflower2002 2 ปีที่แล้ว

    Share codes? Thanks

  • @My-NaMeS_jEfF
    @My-NaMeS_jEfF 3 ปีที่แล้ว +1

    It’s better to use ‘

    • @My-NaMeS_jEfF
      @My-NaMeS_jEfF 3 ปีที่แล้ว

      I suppose you’re okay because just running dplyr/ggplot, but it should be a good habit to get into.

    • @dataslice
      @dataslice  3 ปีที่แล้ว +1

      Yes it’s convention to use

  • @JonesNoahT
    @JonesNoahT 3 ปีที่แล้ว

  • @rogerwilcoshirley2270
    @rogerwilcoshirley2270 3 ปีที่แล้ว

    Although easy enough, its a bit arcane and hardly worth all that work - better use of one's professional time is augmented analysis and directing a smart energetic local undergrad to prettify the graphics.

  • @WahranRai
    @WahranRai 3 ปีที่แล้ว +1

    Stop using the pip and get it simple !

  • @Ridiculouslysirius
    @Ridiculouslysirius ปีที่แล้ว

    WOW I DID NOT EXPECT THIS! I’m a beginner , I have to watch it 20 more times to really understand it BUT You reallyyyy know what you’re doing . NICE❤🫶🏻🤌🏻🌸

  • @pw8332
    @pw8332 ปีที่แล้ว

    nice

  • @harkdjai1488
    @harkdjai1488 ปีที่แล้ว

    www.udio