I want to group the full names of the characters by month_release which is binary (released, unreleased) such that the legend has two groups. If possible as well, it could reset the color schema for each group:
Code:
starting_vs_jp <- mutate(ur_characters, month_release = month(global_release)) %>%
select(full.name, total.stats, month_release) %>%
filter(month_release == 3| is.na(month_release)) %>%
mutate(month_release = ifelse(is.na(month_release), 'Unreleased', "Released")) %>%
arrange(month_release)
ggplot(starting_vs_jp) +
geom_bar(aes(x=month_release, y=total.stats, fill=full.name), position='dodge', stat='identity')
Result at the moment:
Thank you for the help.