R ggplot2 using ..count.. when using facet_grid
问题 I am using R studio in Ubuntu, with standard updated R and ggplot2 I try to create a histogram in ggplot, and to separate the data by groups. I need the plot's y axis to say the frequency of each bin in the subgroup that was split by the facet grid. for example if i have two entries in the data a group 1 1 2 2 I need to use facet_grid to split by group, and then to show that a has one bar for 1 that is 100% percent of the examples in group 1 and vice versa. I found out that the way to do it,