generates histograms of assigned clusters