Data Visualization in R with ggplot2

Learn Data Visualization with ggplot2

Work in Progress
This section is a work in progress. There may be errors and incomplete sections. Please check back for more updated content.

Introduction

Data visualization uses graphics to make information easy to understand. This course will show how to visualize and communicate data in R using ggplot2.

Installing and loading ggplot2 package

To use ggplot2, you first need to install the package. You can do this by running the following command in R:

install.packages("ggplot2")

Once the package is installed, you can load it into your R session using the library function:

library(ggplot2)

ggplot2 comes as part of the tidyverse package so we can also use

library(tidyverse)
Go to Next SectionCreate a bar chart →