Scatter plots with distinguishing colors and shapes in ggplot2

Опубликовано: 16 Март 2026
на канале: Joshua French
710
5

How to construct a scatter plot using ggplot2. Additionally, discussion about how to use colors and shapes to distinguish different levels of a categorical variable.

An html version of this material used in the video can be downloaded to your current working direction (run `getwd()` in the Console to see where this is) by running the following command in the R Console:

download.file("https://raw.githubusercontent.com/jfr...",
"03-basic-data-viz-with-ggplot2.nb.html")

The raw R Markdown code used to generate the html file can be obtained by toggling the "Code" box in the upper-right corner of the html file and selecting "Download Rmd".