In my dataset of (x,y) values I have a lot of points with the exact same values on x and y: {{1,2},{3,4},{3,4},{3,4},{4,5}}
So when I plot them with ListPlot
it looks like I have only one point for {3,4}, which doesn't help me assess the real distribution of my data.
What would be the best way to get a better sense of the distribution visually, to know that behind a single point are in fact hidden lots of other points?
Answer
try this also:
t = {{1, 2}, {3, 4}, {3, 4}, {3, 4}, {4, 5}, {3, 4}, {1, 2}, {6, 7}};
ListPlot[Labeled[Style[#1, PointSize[#2/50], Hue[#2/10]],
Style[#2, Bold, 12]] & @@@ (Tally[t])]
Comments
Post a Comment