Небольшая настройка вашего кода:
library(tidyverse)
data <- data.frame(Crop = c("East","West","North","South"),
Y2018 = c(1000,2000,3000,400),
stringsAsFactors = TRUE)
ggplot(data, aes(x = data$Crop, y = data$Y2018)) +
geom_col(color="black", fill="red") +
theme(axis.text.x = element_text(angle = 60, vjust = 1, hjust = 1)) +
labs(
title = "Production value per crop in 2018",
ylab = "Production value in 2018",
xlab = "Crop"
)
Надеюсь, это поможет