In this tutorial I show you how to create and label scatterplots in R with geom_point(), geom_text/label() and ggplot().
I will explain the different function arguments, how you can map the color or shape to certain variables of your data frame and how to configure text you might want to add to the points.
In the end I show you how you can quickly turn a scatterplot interactive with hover-over functionality.
⏱ Time Stamps ⌚
0:00 - Intro
0:26 - geom_point with iris
1:50 - alpha and shapes
5:25 - coloring
9:02 - size and stroke
10:36 - marginal distribution
12:51 - geom_text/label
13:36 - text alignment
15:27 - font and color options
17:50 - ggrepel
18:45 - plotly interactive
External Links:
www.r-graph-gallery.com/scatt...
r-charts.com/correlation/scat...
ggplot2.tidyverse.org/article...
www.sthda.com/english/wiki/ggp...
rdrr.io/cran/ggrepel/man/geom...
Background Music:
• PARASITE EVE 2 SOUNDTR...
Outro Animation:
AA-VFX Motion Backgrounds
• 4K Relaxing Live Wallp...
Негізгі бет Scatterplots in R with geom_point() and geom_text/label()
Пікірлер: 22