Every time I run my code I get the error of breaks and labels not being the same length
I've tried re-writing the code multiple times but nothing seems to work. I'm also new to using Rstudio
denisondata %>%
group_by(genderid) %>%
mean_ci(race) %>%
filter(genderid != "NA") %>%
ggplot(., aes(x = genderid, y = mean, fill = genderid)) +
geom_col() +
facet_wrap(~race) +
labs(x = "Gender Identity", y = "Race") +
scale_x_continuous(breaks = c(1, 2, 3, 4, 5),
labels = c("White, Hispanic, Black, Asian, Other"),
limits = ("White, Other")) +
theme(text = element_text(family = "Garamond", size = 12),
legend.position = "blank")
I expected a bar graph to be created about race and gender identity