In this tutorial I show you how to create and label scatterplots in R with geom_point(), geom_text/label() and ggplot().
You can download the R code from this video here: https://www.skool.com/data-analysis-with-r-6607/classroom/daa88316?md=12b8c611cb734142af09e4c3f68ac7e4
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:
https://www.r-graph-gallery.com/scatterplot.html
https://r-charts.com/correlation/scatter-plot-marginal-histograms-ggplot2/
https://ggplot2.tidyverse.org/articles/ggplot2-specs.html
http://www.sthda.com/english/wiki/ggplot2-point-shapes
https://rdrr.io/cran/ggrepel/man/geom_text_repel.html
Background Music:
https://youtu.be/CRqt2QS8oZw
Outro Animation:
AA-VFX Motion Backgrounds
https://youtu.be/8S7XAlvSidc