- Видео 65
- Просмотров 59 327
R for the Rest of Us
США
Добавлен 4 май 2020
Beginner friendly R tutorials. No PhD in Statistics required.
How to wrap text automatically in ggplot
In this video, I show how the element_textbox_simple() function from the ggtext package automatically wraps your title, subtitle, or other text so that it fits perfectly within your plot.
Read the blog: rfortherestofus.com/2024/07/wrap-text-automatically
Read the blog: rfortherestofus.com/2024/07/wrap-text-automatically
Просмотров: 249
Видео
Data viz tips for parameterized reporting: set consistent axis limits
Просмотров 22821 день назад
CODE AND DESCRIPTION One of the biggest challenges when doing parameterized reporting is how to make plots consistent across multiple reports. In this video, I show how to make consistent axes when making multiple plots. The example used is a report titled "Oregon by the Numbers", which includes median household income data for various counties in Oregon. I explain how different median househol...
Meghan Harris Explains How to Make Generative Art with R
Просмотров 28128 дней назад
Meghan Harris gives a walkthrough of how to make generative art in R. About Meghan Harris: Meghan Harris is a data scientist at the Prostate Cancer Trials Consortium at the Memorial Sloan Kettering Cancer Center. She’s interested in mental health data science/analytics, community mental health, psychiatric epidemiology, and primary/mental health care integration. Also, Meghan is one of the peop...
How to make polished population pyramids in ggplot: part 2
Просмотров 169Месяц назад
CODE AND DESCRIPTION In a recent video, I showed how to make a population pyramid for Benton County, Oregon. Today, I'm going to show you how to take that code and turn it into a function that can make a population pyramid for any county in Oregon. You can find all of the code in the corresponding blog post at rfortherestofus.com/2024/08/population-pyramid-part-2 If you want to receive emails t...
Animated versions of common dplyr functions
Просмотров 364Месяц назад
One of the best parts about the functions in the dplyr package is that their names indicate what they do. No need to remember a weird acronym; the name of the function to filter your data is filter(). But, helpful as these function names are, it can still be hard to remember exactly what the functions do. In remaking my Fundamentals of R course in 2023, I had Albert Rapp generate animated versi...
How to make polished population pyramids in ggplot: part 1
Просмотров 402Месяц назад
CODE AND DESCRIPTION How do you make a population pyramid in ggplot2? These charts, which allow us to see the distribution of the population by gender and age, are common ways to examine demographics in a particular place. The ggplot code needed to make a population pyramid is quite straightforward, but, as you’ll see in this video, you can go way beyond straightforward to make a polished popul...
How to use RStudio's autocomplete feature to easily import data
Просмотров 231Месяц назад
In this video, I show how to use RStudio's autocomplete function in order to easily import your data. Learn more: rfortherestofus.com/2024/06/rstudio-autocomplete
A step-by-step guide to parameterized reporting in R using Quarto
Просмотров 928Месяц назад
This video gives a step-by-step walkthrough of how to make multiple reports in Quarto using parameterized reporting. If you want to read the blog post that accompanies the video, check out rfortherestofus.com/2024/06/parameterized-reporting-quarto The video is a compilation of lessons the course Going Deeper with R. Learn more about the course at rfortherestofus.com/courses/going-deeper/. Want ...
Make your code output easier to see in RStudio
Просмотров 4782 месяца назад
Here's a short video to show you how to change your code chunk output to show up in your console when working in RStudio. Learn more: rfortherestofus.com/2024/06/code-output If you want to receive tips like this in your email, sign up for the R for the Rest of Us newsletter: rfortherestofus.com/newsletter
Cara Thompson on Creating Custom Color Palettes in R
Просмотров 4062 месяца назад
Cara Thompson gives a walkthrough of code samples showing how she develops custom color palettes. About Cara Thompson: Cara Thompson is a UK-based data visualization consultant with over 15 years of experience in transforming data insights into clear, compelling visual stories. With a solid academic background, Cara specializes in assisting research teams and data-driven organizations to effect...
How to create maps of the US with ggplot
Просмотров 2952 месяца назад
CODE AND DESCRIPTION With the {usmap} package it is dead-simple to create maps of the United States in R. And because this package uses {ggplot} behind the scenes, we can easily customize it to incorporate data information into the map. In this video, we show you how all of that works. The corresponding code can be found in our blog post at rfortherestofus.com/2024/06/us-maps If you want to rec...
R doesn't round the way you think it does
Просмотров 2232 месяца назад
I can't tell you how much time I've spent thinking about rounding in R. Rounding, you ask? Yep! Rounding in R can be confusing because the way R rounds numbers is different than what you might expect. Here's how it works! Learn more: rfortherestofus.com/2024/05/r-rounding-methods
How to remove unwanted texts in your data
Просмотров 4032 месяца назад
CODE AND DESCRIPTION Transforming text data is often a necessary step as part of your data cleaning process. In this video, we show you how that works with functions from the {stringr} package. You can find all of the code in the corresponding blog post at rfortherestofus.com/2024/05/remove-unwanted-texts-with-regex If you want to receive emails to help you on your R journey, sign up for the R ...
Nicola Rennie Explains How to Make Data Visualizations for Mobile in R
Просмотров 5693 месяца назад
Nicola Rennie gives a walkthrough of R code for making data visualizations that work well on mobile and desktop devices. About Nicola Rennie: Nicola Rennie is a lecturer in health data science based within the Center for Health Informatics, Computing, and Statistics at Lancaster University in the UK. Her research interests include applications of statistics and machine learning to healthcare, c...
How to Add Stroke Outlines to Your Texts in ggplot2
Просмотров 5273 месяца назад
How to Add Stroke Outlines to Your Texts in ggplot2
How to install a package not on CRAN
Просмотров 1823 месяца назад
How to install a package not on CRAN
How to Reuse Code in RStudio With Snippets
Просмотров 7043 месяца назад
How to Reuse Code in RStudio With Snippets
Will Landau on Using {targets} to Manage Reproducible Analysis Pipelines in R
Просмотров 7704 месяца назад
Will Landau on Using {targets} to Manage Reproducible Analysis Pipelines in R
How to Split Up Columns in Your Data
Просмотров 4804 месяца назад
How to Split Up Columns in Your Data
How to use the scales package in R for European-style number formatting
Просмотров 1664 месяца назад
How to use the scales package in R for European-style number formatting
How to Format Your R Code With {styler}
Просмотров 1,7 тыс.4 месяца назад
How to Format Your R Code With {styler}
Ahmadou Dicko on Using R in the Humanitarian Data Space
Просмотров 4085 месяцев назад
Ahmadou Dicko on Using R in the Humanitarian Data Space
How to Easily Select Columns with tidyselect Helpers
Просмотров 5735 месяцев назад
How to Easily Select Columns with tidyselect Helpers
How to Add Sparklines to a Table in R
Просмотров 5226 месяцев назад
How to Add Sparklines to a Table in R
How to Make Gauge Plots With ggplot2
Просмотров 5557 месяцев назад
How to Make Gauge Plots With ggplot2
Create Parts-of-a-Whole Bar Charts with R
Просмотров 4778 месяцев назад
Create Parts-of-a-Whole Bar Charts with R
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.
Was the presentation created using Rmarkdown or Quarto? If so, how?
Sort of. The slides were created with Quarto, but the animations were made outside of R and edited into the video after the fact.
wow this is excellent !!!!!!!!!! thank you
It was fun to watch three of my favorite R-experts in one single RUclips 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 RUclips an indispensable lesson. Thank you for making complex functions accessible.
Since the population pyramid is a quite popular visualization in demographics, it feels like someone should make a specialized function for that.
woow, this is neat. I will use this in my shiny apps. By the way, what is the advantage of using the *.by* parameter inside summarize() as opposed to using plain old *group_by()* ???
This RUclips video generously demonstrates how to professionally create a population pyramid.
Love it. I usually go for lollipop plots: a width= 0.2 barplot + geom-point, and within the point I insert the percentage of it's not clear😊
love love love this one💌💌💌💌I am commenting as my country reports are being generated!!!
Thank you, concise and useful. Great video format!
Great tip
Thanks a lot from Brazil!!!
Excellent video. I have seen several other accounts of using quarto to produce mulitple reports but this is by far the best. Thanks.
Thank you very much. Very helpful tutorial. I can use this information to create individual feedback reports (much like you in your initial excel-example). Can you elaborate in a future video on how to parameterize e-mailing these to individual users whose e-mail is in your dataset?
Love this idea. I'll add it to the list of future tutorials to make.
Can you comment on the overlap and differences between Quarto and Rmarkdown/Bookdown?
I cover this in my book. Check it out! book.rfortherestofus.com/quarto.html
@@rfortherestofus fantastic, thanks!
@@rfortherestofus would you say that migrating a book project from Bookdown to Quarto should be straightforward?
@@kevalan1042 sort of. I actually did this for my book (I originally built it in bookdown, then switched to Quarto). Which parts are you wondering about?
@@rfortherestofus I have a bookdown project that has a bunch of things built in, tikz graphs, r graphics, latex tweaks (would like to retain the ability to generate both PDF and HTML). So I was wondering whether switching to Quarto would be a tedious process
thank you, very helpful
very clear, thank you -- by the way, those reports look amazing
Why don't you explain? I thought It was like floats in python that has to do with CPU or some sort.. it's interesting to know the reason behind rounding to even
See cran.r-project.org/web/packages/scrutiny/vignettes/rounding-in-depth.html#:~:text=To%20even%20(base%20R),a%20technical%20standard%2C%20IEEE%20754.
Thank you 🙏
thanks a lot, very excited to learn this
Much awaited video. It was amazing as were all your videos. Thank you.
Bro you're goated. This actually helped me so much. Thank you!!
awesome thanks!
Nice overview of the usmap package. I would love to see a video on tmap which has recently been updated.
Nice
That's really good to know!
I used it for years never detected this
Which packages do you use in the video for regular expressions?
Check out the {stringr} package!
Excellent stuff Albert, 15 minutes of power packed data wrangling with tidyverse. I never knew that you could pass regexes directly into pivot longer's arguments. Bravo!!
Amazing thanks
Amazing tutorial. The best video on regular expressions on RUclips. Please keep me the great work, and make more regex tutorials. ❤❤❤❤
Thank you!
An engrossing presentation. Also an excellent introduction to the new ggplot2 features.
Thank you for the presentation. Lots to learn here from the discussion of this beautiful plot. I did find the presentation was hard to follow where the video jumps lines. For example, I could not find the reference to the specific plot_1.R and plot_2.R code and lines are skipped in plot_1.R. The code for plot_1.R can be reconstructed by comparing the two scripts, that is, the code missing from plot_1.R can be reconstructed from plot_2.R.
Working on getting the code posted on GitHub for you!
Here you go! github.com/nrennie/rfortherestofus-mobile-data-viz
That’s very interesting to know. Thanks 👍🏾
Never knew we could pass on geom_text argument the way it was done via a tibble. And the code link in the description is not working
This is really cool! Thank you!
Great video , thanks
I use the shiny app snippet a lot. I've never noticed the function one, gonna start using that one a lot. I'll defo be on the lookout for opportunities to make my own snippets. Thanks for sharing this, super useful!!
I love code snippets! I have found you can do some interesting things if you also harness the `rstudioapi` that can modify code or text by inserting, deleting, moving. I use this to make a standard header for all my quarto docs with my typical libraries.
Nice, I was not aware of snippets. Thanks!
Very interesting new way of pipeline. Thx for the podcast. 👍
thank you - useful video
This is great !