I have these combined histograms:
set.seed(1)
x <- rbind(data.frame(data = rnorm(500, -1, 1), group = 'First'),
data.frame(data = rnorm(500, 1, 1), group = 'Second'))
ggplot(x, aes(data, fill=group)) +
geom_histogram(alpha = 0.5, aes(y=(100*..count..)/sum(..count..)), color='black', position='identity')
In the plot, I would like to manually color the first group as red and the second group as green. I looked here, here, and here, but these did not answer my question.