Creating Basic Charts with ggplot2
Code Example 1
Code
7 / 11
Code Example 1
Code
Code Example 1
r
library(tidyverse)
prepared_data |>
ggplot(aes(x = site)) +
geom_bar() +
labs(
title = "Enrollment by Site",
x = "Site",
y = "Number of participants"
)