- 83
- 82 536
R for the Rest of Us
United States
เข้าร่วมเมื่อ 4 พ.ค. 2020
Beginner-friendly R tutorials. No PhD in Statistics required.
How to generate QR codes in R
Need an easy way to share your presentation materials? In this R in 2 Minutes video, I show how to use the {qrcode} package in R to add QR codes to your slides! Discover how to generate QR codes, save them as SVGs, and add them directly to Quarto slides for quick access to your resources. Perfect for sharing slides, GitHub repos, and websites seamlessly!
Read the blog post, which includes the code used: rfortherestofus.com/2025/01/qr-codes
Read the blog post, which includes the code used: rfortherestofus.com/2025/01/qr-codes
มุมมอง: 257
วีดีโอ
Automate file management in R with the {fs} package
มุมมอง 75014 วันที่ผ่านมา
CODE AND DESCRIPTION In this video, Jadey Ryan shows you how to use the {fs} package to easily organize chaotic folders full of files with inconsistent names. Jadey demonstrates how to rename, create, move, and delete files with just a few lines of code, turning disorganized chaos into clean, consistent order! You can find all of the code in the corresponding blog post at rfortherestofus.com/20...
Use geom_ribbon() to highlight the gap between two lines
มุมมอง 594หลายเดือนก่อน
CODE AND DESCRIPTION In this video, I recreate a New York Times-style chart in R using {ggplot2}. I guide you step-by-step on how to make a line chart with two lines, highlighting the gap between them for specific time periods using geom_ribbon(). You'll also learn how to add annotations showing the size of the gap and label the lines directly with geom_textpath()-no more legends! Using data fr...
DevOps for Data Science: Making Your Work Reproducible and Production-Ready with Alex Gold
มุมมอง 301หลายเดือนก่อน
Alex Gold joins us in Episode #20 of R for the Rest of Us podcast to talk about his new book DevOps for Data Science. We explore why DevOps principles matter for data scientists, even outside hardcore production work. Alex shares tips on making your projects more reproducible using {renv} and provides a live demo, offering practical advice on creating data science work that’s robust, shareable,...
How the United Nations High Commissioner for Refugees Uses Data Viz to Increase its Impact
มุมมอง 449หลายเดือนก่อน
Cédric Vidonne from UNHCR joins us in Episode #21 of R for the Rest of Us podcast to discuss how data visualization drives critical decisions in humanitarian aid. Cédric shares his transition to R programming, his role in building UNHCR's data visualization community, and the development of branded ggplot themes and Quarto templates. Discover how these tools help create clear, reproducible data...
Use the view() function to quickly look at your data in R
มุมมอง 223หลายเดือนก่อน
In this video, I show how to use the view() function to quickly display data in a separate window. Read the blog post: rfortherestofus.com/2024/11/view-function
An introduction to the {gganimate} package
มุมมอง 635หลายเดือนก่อน
CODE AND DESCRIPTION In this video, I give you an intro to using {gganimate}, with data on refugees that comes from the United Nations Human Rights Commission (UNHCR). You can find all of the code in the corresponding blog post at rfortherestofus.com/2024/11/gganimate-intro If you want to receive emails to help you on your R journey, sign up for the R for the Rest of Us newsletter: rfortheresto...
Use vertical white lines instead of axis lines for cleaner charts
มุมมอง 5832 หลายเดือนก่อน
CODE AND DESCRIPTION In this video, I explore a creative data visualization technique inspired by a unique chart from the New York Times, which used subtle white lines in place of traditional axis lines. The chart showcased the tenure of U.S. House speakers, with vertical white lines appearing only on the bars, blending seamlessly into the background elsewhere. I'll show you how to recreate thi...
How Christine Parker Used R to Help Improve Internet Access in the United States
มุมมอง 1562 หลายเดือนก่อน
Christine Parker shows how she used R to clean, combine, and summarize data for a dashboard tracking enrollment in the Affordable Connectivity Program (ACP), which helps people access internet services. About Christine Parker: Christine is the Senior GIS Analyst on the Community Broadband Networks team. Christine’s work is focused on illustrating and describing Internet availability and adoptio...
Make all of your plots made in ggplot use consistent fonts
มุมมอง 4882 หลายเดือนก่อน
In this R in 2 Minutes video, I share a couple of little tricks using ggplot2 that'll help you maintain font consistency without having to manually adjust each plot. Read the blog post: rfortherestofus.com/2024/10/consistent-fonts
Use smart labeling in ggplot to help your audience understand your graphs
มุมมอง 6783 หลายเดือนก่อน
CODE AND DESCRIPTION In this video, we dive into how to use smart labeling in ggplot to make your graphs clearer and more impactful. I demonstrate why labeling too much data can overwhelm your audience and how to highlight the most relevant information. Watch to learn how to use {ggrepel} to reduce clutter and focus on what truly matters, ensuring your audience gets the insights you want them t...
Crystal Lewis Shares the Keys to Effective Data Management
มุมมอง 4923 หลายเดือนก่อน
Crystal Lewis talks about systematic implementation of practices that are key to effective data management. About Crystal Lewis: Crystal Lewis is a freelance research data management consultant. She helps other people to understand how to organize, document, and share their data. She's been wrangling data in the field of education for over 10 years and is also a co-organizer of the St. Louis Ch...
How to update all of your R packages
มุมมอง 3473 หลายเดือนก่อน
In this R in 2 Minutes video, I show you how to update all of your R packages with just a few lines of code. Read the blog post: rfortherestofus.com/2024/10/update-r-packages
How to make a thousand plots look good
มุมมอง 1.4K3 หลายเดือนก่อน
How to make a thousand plots look good
How to distinguish overlapping points in ggplot
มุมมอง 2924 หลายเดือนก่อน
How to distinguish overlapping points in ggplot
How to preview plots at specific dimensions in RStudio
มุมมอง 3404 หลายเดือนก่อน
How to preview plots at specific dimensions in RStudio
Animated versions of common dplyr functions
มุมมอง 6044 หลายเดือนก่อน
Animated versions of common dplyr functions
Miles McBain on Patterns and Anti-patterns of Data Analysis Reuse
มุมมอง 2434 หลายเดือนก่อน
Miles McBain on Patterns and Anti-patterns of Data Analysis Reuse
How to wrap text automatically in ggplot
มุมมอง 4645 หลายเดือนก่อน
How to wrap text automatically in ggplot
Data viz tips for parameterized reporting: set consistent axis limits
มุมมอง 4145 หลายเดือนก่อน
Data viz tips for parameterized reporting: set consistent axis limits
Meghan Harris Explains How to Make Generative Art with R
มุมมอง 3945 หลายเดือนก่อน
Meghan Harris Explains How to Make Generative Art with R
How to make polished population pyramids in ggplot: part 2
มุมมอง 2696 หลายเดือนก่อน
How to make polished population pyramids in ggplot: part 2
How to make polished population pyramids in ggplot: part 1
มุมมอง 6106 หลายเดือนก่อน
How to make polished population pyramids in ggplot: part 1
How to use RStudio's autocomplete feature to easily import data
มุมมอง 3626 หลายเดือนก่อน
How to use RStudio's autocomplete feature to easily import data
A step-by-step guide to parameterized reporting in R using Quarto
มุมมอง 4.8K6 หลายเดือนก่อน
A step-by-step guide to parameterized reporting in R using Quarto
Make your code output easier to see in RStudio
มุมมอง 6647 หลายเดือนก่อน
Make your code output easier to see in RStudio
Cara Thompson on Creating Custom Color Palettes in R
มุมมอง 5107 หลายเดือนก่อน
Cara Thompson on Creating Custom Color Palettes in R
How to create maps of the US with ggplot
มุมมอง 4767 หลายเดือนก่อน
How to create maps of the US with ggplot
R doesn't round the way you think it does
มุมมอง 2677 หลายเดือนก่อน
R doesn't round the way you think it does
How to remove unwanted texts in your data
มุมมอง 4928 หลายเดือนก่อน
How to remove unwanted texts in your data
Nice contribution!
That's awesome, super clear and concise! Before, when I needed a QR code, I always turned to the same 2-3 webpages that make it "for free" but charge if you try to do anything extra with it, but this has just become my default method now to do it. Thanks for sharing
Brilliant! Thanks for this
Well explained and demonstrated. Thank you!
thank you so much
Thank you for this walkthrough. Very thorough!
nice tutorial
This is, so far, the only one I've found that best explains what the message means and what the ".groups" arguments really do. The other explanations online are vague and confusing. Adding that "slice_max" function helps a lot to demonstrate what really happens to the output. Thanks so much!
That's neat. Still, I am yet to understand the added value of moving from Rmarkdown to Quarto
Thank you for this amazing and clean graph. I could recreate it exactly as you did. I wondered how the geom_textpath() function places the country names in an appropriate position and with the proper slope/inclination.
I don't know exactly how geom_textpath() works, but it is amazing!
amazing work, David. thank you for suring. i will definitly recreate this
Greatest
Awesome - thank you so much!
You can do this in dataframe view by using the “Filter” button, but view() is useful when filtering for dates (which for some reason cannot be filtered by using “Filter” button in the dataframe view) 😉
Thank you so much for this amazing video! It was incredibly helpful in guiding me to create my graphics. I had to make a small adjustment to the frames in my script, and here’s the code snippet I used: library(magick) library(gganimate) animation <- middle_east_refugees_map + labs(title = "Refugees as a percentage of total population in {current_frame}") + transition_manual(year) animate(animation, nframes = 24, fps = 1)
Wow, thx for the update ! I did really enjoy this short presentation !
I always learn so much from R for the rest of us TH-cam, but this one on reverse-engineering the Financial Times viz is a game-changer! It’s going to be my go-to resource. I discovered new techniques like slice_max() and advanced uses of ggplot2::annotate(). It also show cases using tools like SIP to uncover hidden HEX color codes.
Thank you for the trick. How do you draw rectangular box or highlight code by underlying it using orange type color. Which tool you use?
I use Sip (sipapp.io/), but there are a number of color picker tools that do the same thing.
Oh wait, do you mean the orange highlighting in the video itself? If so, we edit our videos with a tool called Descript.
Thanks for sharing. Amazing video! I'd to try and recreate this in Power BI using Vega-Lite code. Could you kindly point me in the right direction of the Gapminder data source please?
Hey! Very nice work. I'm still trying to learn some more advanced ggplot stuff and your videos have been very helpful. I want to add that the central line can be added very easily with geom_hline() since it runs parallel to the whole x axis, though I get why you didn't do it since it made no sense with your data.
thx for the video
The code that I created in the stream is here: gist.github.com/dgkeyes/4a9301e2aecb04ee0a2aded93e91ed32
very clear and straightforward 🎉
hm, i think it would be nicer to use theme( panel.ontop = TRUE, panel.grid.major.y = element_blank(), panel.grid.major.x = element_line(color = "white", linewidth = 0.25), ... ) instead of the whole geom_vline(...). That way you can control the breaks and labels of the x axis by scale_x_continuous(...)
❤❤❤
As usual, a concise and powerful tips are provided. Many thanks for making our coding lives easier.
Great, didnt know the atroke argument with shape 21! Question: can you control thr stroke's transparency? Something like stroke_alpha? I assume there's a css behind the scenes for it. Another thing: You can use position_dodge() to set x and/or y distance, much like jitter but with greater control
I've never looked into setting the transparency of the stroke. Let me know if you figure out whether it works!
@@rfortherestofus th-cam.com/video/of6wzzQxqJg/w-d-xo.htmlsi=AIqQNr0Hi_L3tHj7 In this video, pat scchloss was able to find an interesting workaround by creating an annotation of just the stroke (fill = NA) so he controls the stroke independently from the fill. 11:20 I think it began.
@@rfortherestofuspat scchloss found a way. Basically, have one geom with just the fill (color of point) and another one with just the stroke, and control their transparencias independently of each other
Very nice. I like the approach of using ifelse statement for label, if_else location == hartford, pct_fmt, NA. This way I don't need to store the data (i usually run filters and mutations before passing to ggplot)
Thank you but what is the advantage of this versus using the update function in package tab in Rstudio?
This would be helpful if you were going to upgrade R and wanted to reinstall packages (upgrading R removes all packages that you currently have installed).
But it only gets the list of currently installed packages so I guess you would have to save it out to a file prior to installing the new version of R
@@shadyamigo Yes, that's true.
Thank you, love your content. This is so helpful
This is like going through "storytelling with data" book in 20 min....nice!!
Your reports have great layouts.. I was wondering if you achieve this with quarto/Rmarkdown only, OR are you using latex or Illustrator to finalize the layout! If these reports are solely quarto/Rmarkdown based, can you point out a sample or tutorial? Layout of images and text is my weakest point and the example quarto templates that I can find are too basic and had no layout aesthetics..
Thanks you! We do everything in R. In terms of a tutorial, keep an eye on the Posit TH-cam channel. They are releasing videos from posit::conf 2024. I spoke about how we make reports there. You can also see my slides here: github.com/rfortherestofus/report-design
Very nice. You know, I think what's missing in this space is a tool that includes both parametrized reporting and manual exception handling. For example, in cases where a rule works almost everywhere, just use the rule everywhere except for the problematic items. The perfect GUI would then allow to edit those cases manually, and ideally produce the code to handle these exceptions (based on those manual edits, a la Bret Victor).
extremely instructive, thank you so much for sharing your hard-won experience and expertise
Really nice video!
Great video!
Do you have the code?
Hey, I've been following the code on the blog post (with my own data) but when I call + geom_col() my chart goes upwards and not across. There are other ways for me to 'hack' it to go across, but then the rest of the code isn't the same. Besides, it's bugging me that I'm using exactly the same code and getting a different result. Why might that be? I tried to comment on the blog post itself but it keeps telling me I need to be logged in even though I already am! (A bad day for technology today clearly 🫠)
Sometimes errors related to font size may occur when saving as a picture. The showtext package helps. showtext_auto() showtext_opts(dpi = 300)
Brilliant addition to for R data viz! Do you know if it is base R compatible or an alternative?
I believe it should work with base R, but if you try it, let me know for sure!
Underrated TH-cam channel I think you should work on your thumbnails
This is exactly what I needed to learn how to do. Thank you!
Excellent tip. Thank you
Cool!
Thats sick wow
An excellent lesson. You learn not only about setting consistent axes, but also about ordering categorical variables and pulling out a variable's maximum values.
wow this is excellent !!!!!!!!!! thank you
It was fun to watch three of my favorite R-experts in one single TH-cam session.
The only possible comment, nice to see these guys together!
❤ thank you
Creativity along with a deep knowledge of different r libraries makes this TH-cam an indispensable lesson. Thank you for making complex functions accessible.