I need to draw this chart by using my existing data.
This is what my data looks like.
This is the error:
This is what I tried:
percent_incarcerated <- c(0, 5)
top_10_black_incarceration_plot <- ggplot(top_10_black_incarceration_states_df)+
geom_col(aes(x = state, y = percent_incarcerated, fill = c(Black, Total)),
position = "dodge", stat="identity") +
geom_col(position="dodge", stat="identity")