Hands-on Exercise 1

Author

Oh Jia Wen

Published

April 13, 2023

Modified

April 29, 2023

Getting Started

Install and launching R packages

The code chunk below uses p_load() of pacman package to check if tidyverse packages are installed in the computer. If they are, then they will be launched into R.

pacman::p_load(tidyverse)

Importing the data

exam_data <- read_csv("data/Exam_data.csv")

Plotting a simple bar chart

ggplot(data= exam_data,
       aes(x = RACE)) +
  geom_bar()