Visualization More_Detailed_Categories

PHOTO EMBED

Mon Sep 04 2023 14:36:08 GMT+0000 (Coordinated Universal Time)

Saved by @dr_dziedzorm

# Load ggplot2 library
library(ggplot2)

# Create a bar chart to visualize the distribution of categories
ggplot(data, aes(x = Category)) +
  geom_bar(aes(fill = Category), position = "dodge") +
  theme_minimal() +
  labs(
    title = "Distribution of Categories",
    x = "Categories",
    y = "Frequency",
    caption = "Source: Your Excel Data"
  ) +
  theme(axis.text.x = element_text(angle = 45, hjust = 1))
content_copyCOPY