Pipes
This lesson is called Pipes, part of the Fundamentals of R course. This lesson is called Pipes, part of the Fundamentals of R course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Make sure that you have R 4.1 or higher
Switch to using the native pipe by default
Confirm that the keyboard shortcut works to insert a native pipe
Have any questions? Put them below and we will help you out!
Course Content
34 Lessons
1
The Grammar of Graphics
04:39
2
Scatterplots
03:46
3
Histograms
05:47
4
Bar Charts
06:37
5
Setting color and fill Aesthetic Properties
02:39
6
Setting color and fill Scales
05:40
7
Setting x and y Scales
03:09
8
Adding Text to Plots
07:32
9
Plot Labels
03:57
10
Themes
02:19
11
Facets
03:12
12
Save Plots
02:57
13
Bring it All Together (Data Visualization)
06:42
You need to be signed-in to comment on this post. Login.
Rachel Udow • March 17, 2024
First: CTRL + SHIFT + M is a gamechanger for me -- thank you! Second, I wanted to ask, why is there a new native pipe in R, and what is the reason we are using the new native pipe vs. the tidyverse pipe in this course? I currently use the tidyverse pipe in my day-to-day work, so am just curious about whether I should be thinking about switching which pipe I use in that context, too. Thanks!
Libby Heeren Coach • March 17, 2024
HI! Piping has become so handy even outside of the tidyverse that adding a native pipe to R allows it to be used (when not using any of the tidyverse packages) without loading the {magrittr} package (which is the package that gives tidyverse it's %>% pipe). Adding the native pipe means you can load no packages at all and still use piping 🥳 The pipes are (mostly) interchangeable, so I don't think there's a need to switch over old code, but if you'd like to start using the native pipe, you'll be used to it in no time. It took me a while to switch, but I've experienced no big snags.
Rachel Udow • March 19, 2024
Thanks, Libby!