trying to make a bar plot with ggplot and recieving errors

by_gender_gpa %>%
  ggplot(aes(x = gpa, y = callback_prop, color = gender) +
           geom_bar(stat = "identity", position = "dodge")) +
  labs(x = "gpa", y = "callbacks", title = "callbacks based on gender and gpa")

here is my code but I keep getting this error:
Error in $<*tmp*, "call_text", value = c("by_gender_gpa %>% ...", :
replacement has 3 rows, data has 2
does anyone know what is wrong? thanks!

Hi, welcome!

We don't really have enough info to help you out. Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to help.

If you've never heard of a reprex before, you might want to start by reading this FAQ: