How to add a legend to the multiple histograms with ggplot?
问题 I am trying to add a legend to the graph but it doesn't work. Do you have any ideas ? Here is my code : ggplot(data =stats_201507_AF ) + geom_histogram(aes(gross_ind),fill="dodgerblue3", show.legend =T,bins=25)+ geom_histogram(aes(net_ind),fill="springgreen4",show.legend = T,bins=25) + geom_histogram(aes(tax_ind),fill="gold2",show.legend = T, bins=25) + xlab("Indices")+ scale_colour_manual(values=c("dodgerblue3","springgreen4","gold2")) I wanted a description for every histogram with a