Do you want to learn to program in R? If you're a beginner, you're in the right place! This is the fifteenth video in an introductory series that will teach you to program and analyze data in R. This series of videos is suitable for beginners or experienced programmers or data analysts who want to learn R. In this video we learn about how to plot with ggplot, the package in the tidyverse. Let's have fun learning to program with R!
The auto-graded exercises that go with this video can be downloaded here:
github.com/ProfessorBurke/REx...
(Read the readme file and then download or fork the Video15-ggplot folder to use in RStudio.)
Do you want a great book to go along with these videos? You might find it helpful to read chapter 8 (ggplot2 in case the chapter has moved) in Introduction to Data Science: Data Analysis and Prediction Algorithms with R by Rafael A. Irizarry:
rafalab.dfci.harvard.edu/dsboo...
Coming from a programming background, one of the most helpful R books that I've read is The art of R programming: A tour of statistical software design, by Norman Matloff*:
amzn.to/3YCsQZD
And of course, the ultimate source on the Tidyverse itself is Hadley Wickham! I urge you to read his book:
r4ds.hadley.nz/
The first R video is here:
• R Basics: Math, Vector...
The introduction to R playlist is here:
• R Basics: Math, Vector...
The first Tidyverse video is here:
• Introduction to the ti...
Download and install R:
www.r-project.org/
Download and install RStudio:
posit.co/downloads/
Hadley Wickham's R style guide:
adv-r.had.co.nz/Style.html
Here's the ggplot cheat sheet:
rstudio.github.io/cheatsheets...
Here is the data from the video.
AI expenditures from 2017 to 2021, by category, from
ourworldindata.org/artificial...
Daniel Zhang, Nestor Maslej, Erik Brynjolfsson, John Etchemendy, Terah Lyons,
James Manyika, Helen Ngo, Juan Carlos Niebles, Michael Sellitto, Ellie Sakhaee,
Yoav Shoham, Jack Clark, and Raymond Perrault, “The AI Index 2022 Annual
Report,” AI Index Steering Committee, Stanford Institute for Human-Centered AI,
Stanford University, March 2022.
The github repository with all of the code examples for the introductory programming in R videos is here:
github.com/ProfessorBurke/REx...
*As an Amazon Associate I earn from qualifying purchases. Your purchases help me continue to bring you content!
00:00 Welcome!
00:57 A simple plot
05:06 Adding labels
06:32 Adding themes
07:20 Adding a layer
07:58 A layer with different data
10:20 Setting aesthetics to a fixed value
11:38 Adding a legend
15:06 Storing the plot in a variable
Негізгі бет Introduction to ggplot in R; Learn R Video 15
Пікірлер