R for the Rest of Us
R for the Rest of Us
  • Видео 65
  • Просмотров 59 327
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
Просмотров: 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
Ep#15 Nicola video clip
Просмотров 894 месяца назад
Ep#15 Nicola video clip
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 Know if Your Data is Tidy
Просмотров 4855 месяцев назад
How to Know if Your Data is Tidy
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 Work with Dates & Times in R
Просмотров 5796 месяцев назад
How To Work with Dates & Times in R
How to Make Gauge Plots With ggplot2
Просмотров 5557 месяцев назад
How to Make Gauge Plots With ggplot2
How to Make Curved Text in ggplot2
Просмотров 6217 месяцев назад
How to Make Curved Text in ggplot2
Create Parts-of-a-Whole Bar Charts with R
Просмотров 4778 месяцев назад
Create Parts-of-a-Whole Bar Charts with R

Комментарии

  • @deniecewilliams1981
    @deniecewilliams1981 День назад

    This is exactly what I needed to learn how to do. Thank you!

  • @muhammedhadedy4570
    @muhammedhadedy4570 7 дней назад

    Excellent tip. Thank you

  • @CanDoSo_org
    @CanDoSo_org 12 дней назад

    Cool!

  • @oskareczqu5477
    @oskareczqu5477 13 дней назад

    Thats sick wow

  • @albertocabrera4297
    @albertocabrera4297 20 дней назад

    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.

  • @thiagobandini
    @thiagobandini 29 дней назад

    Was the presentation created using Rmarkdown or Quarto? If so, how?

    • @davidgkeyes
      @davidgkeyes 29 дней назад

      Sort of. The slides were created with Quarto, but the animations were made outside of R and edited into the video after the fact.

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

    wow this is excellent !!!!!!!!!! thank you

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

    It was fun to watch three of my favorite R-experts in one single RUclips session.

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

      The only possible comment, nice to see these guys together!

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

    ❤ thank you

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

    Creativity along with a deep knowledge of different r libraries makes this RUclips an indispensable lesson. Thank you for making complex functions accessible.

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

    Since the population pyramid is a quite popular visualization in demographics, it feels like someone should make a specialized function for that.

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

    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()* ???

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

    This RUclips video generously demonstrates how to professionally create a population pyramid.

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

    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😊

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

    love love love this one💌💌💌💌I am commenting as my country reports are being generated!!!

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

    Thank you, concise and useful. Great video format!

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

    Great tip

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

    Thanks a lot from Brazil!!!

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

    Excellent video. I have seen several other accounts of using quarto to produce mulitple reports but this is by far the best. Thanks.

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

    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?

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

      Love this idea. I'll add it to the list of future tutorials to make.

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

    Can you comment on the overlap and differences between Quarto and Rmarkdown/Bookdown?

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

      I cover this in my book. Check it out! book.rfortherestofus.com/quarto.html

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

      @@rfortherestofus fantastic, thanks!

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

      @@rfortherestofus would you say that migrating a book project from Bookdown to Quarto should be straightforward?

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

      @@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?

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

      @@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

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

    thank you, very helpful

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

    very clear, thank you -- by the way, those reports look amazing

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

    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

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

      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.

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

    Thank you 🙏

  • @Aaqib..
    @Aaqib.. Месяц назад

    thanks a lot, very excited to learn this

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

    Much awaited video. It was amazing as were all your videos. Thank you.

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

    Bro you're goated. This actually helped me so much. Thank you!!

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

    awesome thanks!

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

    Nice overview of the usmap package. I would love to see a video on tmap which has recently been updated.

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

    Nice

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

    That's really good to know!

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

    I used it for years never detected this

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

    Which packages do you use in the video for regular expressions?

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

    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!!

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

    Amazing thanks

  • @muhammedhadedy4570
    @muhammedhadedy4570 3 месяца назад

    Amazing tutorial. The best video on regular expressions on RUclips. Please keep me the great work, and make more regex tutorials. ❤❤❤❤

  • @KameshwarChoppella
    @KameshwarChoppella 3 месяца назад

    Thank you!

  • @albertocabrera4297
    @albertocabrera4297 3 месяца назад

    An engrossing presentation. Also an excellent introduction to the new ggplot2 features.

  • @dasrotrad
    @dasrotrad 3 месяца назад

    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.

    • @rfortherestofus
      @rfortherestofus 3 месяца назад

      Working on getting the code posted on GitHub for you!

    • @rfortherestofus
      @rfortherestofus 3 месяца назад

      Here you go! github.com/nrennie/rfortherestofus-mobile-data-viz

  • @RMasteryHub
    @RMasteryHub 3 месяца назад

    That’s very interesting to know. Thanks 👍🏾

  • @ambhat3953
    @ambhat3953 3 месяца назад

    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

  • @matthewhsu7299
    @matthewhsu7299 3 месяца назад

    This is really cool! Thank you!

  • @VibeZ_1221
    @VibeZ_1221 3 месяца назад

    Great video , thanks

  • @pipertripp
    @pipertripp 3 месяца назад

    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!!

  • @fishinwithseabass
    @fishinwithseabass 4 месяца назад

    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.

  • @thiagobandini
    @thiagobandini 4 месяца назад

    Nice, I was not aware of snippets. Thanks!

  • @sylvd81
    @sylvd81 4 месяца назад

    Very interesting new way of pipeline. Thx for the podcast. 👍

  • @MrWonszBoa
    @MrWonszBoa 4 месяца назад

    thank you - useful video

  • @serignembackecoly5916
    @serignembackecoly5916 4 месяца назад

    This is great !