Beautiful Charts with R & ggplot2 (Step-By-Step Tutorial for Beginners)

preview_player
Показать описание
FULL CODE AND DESCRIPTION:

DESCRIPTION:
ggplot2 is an incredibly powerful tool to create great charts with R. But it has a bit of a learning curve. This tutorial shows you everything you need to know to get started with ggplot in 45 minutes

FULL CODE:

WANT TO GET EVEN BETTER?

LINKS TO THINGS I'VE MENTIONED:

MORE VIDEOS

MORE CONTENT

#rstats #dataviz #ggplot2

TIMECODES

00:00 Intro
00:30 First Chart
01:43 What the heck is aes()?
03:50 Why coordinates in aes() & scales?
05:07 Use a real data set
06:19 Set aesthetics to fixed values
07:20 Make color dependent on data
09:30 Avoid code repetition
10:12 Nicer labels & titles
10:58 theme_*() layer and font size
11:38 theme() function: using values for changes
12:50: theme() function: using elements
15:29: Try out scales
16:21 Our first bar chart
17:50 Statistical transformations
19:00 Trying to work with statistical transformation
20:30 Identical statistical transformation
21:20 Creating a histogram with a stat_* layer
22:40 Connection between stat and geom layers
24:10 Easier layers without touching stat
24:45 Add labels to bar chart
27:00 Formatting the labels
27:45 Change color of bars
28:40 Remove more duplicate code
29:40 Split histogram by sex
31:30 Change positioning of colored histograms
33:03 More position changes (dodge and jitter)
35:44 Use multiple windows for different histograms
37:00 Putting it all together with a new data set
44:20 How to learn more?
45:02 Shameless plug & outro
Рекомендации по теме
Комментарии
Автор

this is crazy, I watched first 10 mins without coding, which shows how you explain everything so easy

mbmathematicsacademic
Автор

dark mode + properly zoomed + logical well-paced instruction = straight in my faves

DM-pypj
Автор

For a casual R user, myself, this is great. The video format, pacing, audio quality and everything; great.

difflocktwo
Автор

Really grateful for this. This is a power packed video, informational and compact. Thanks again sir

Aaqib..
Автор

Thanks for the really nice intro, I'll share it.
Personally, I'm a bit more advanced, currently learning how to expand the base package.

leadrevolver
Автор

Though I've been using ggplot for few years I was still able to learn new things about scale x continuous and adjusting geom text. Thx

Btw, I think it would have helped newbies if you had shown 'group' parameter in geom line.. That's always needed in geom line and it's not very intuitive when you look at documentation

ambhat
Автор

Very nice and helpful introduction to ggplot! Do you also plan to create such an introduction to data wrangling?

MrSainforce
Автор

how do i insert those bars on the left side of the R code

alphaena