Normalizing faceted histograms separately in ggplot2
问题 My questions is similar to Normalizing y-axis in histograms in R ggplot to proportion but I'd like to add to it a bit. In general, I have 6 histograms in a 2x3 facet design, and I'd like to normalize each of them separately. I'll try to make a sample data set here to give an idea: hvalues=c(3,1,3,2,2,5,1,1,12,1,4,3) season=c("fall","fall","fall","fall","winter","winter","winter","winter","summer","summer","summer","summer") year=c("year 1","year 1","year 2","year 2","year 1","year 1","year 2"