{"action":"closed","issue":{"url":"https://api.github.com/repos/hadley/ggplot2/issues/1430","labels_url":"https://api.github.com/repos/hadley/ggplot2/issues/1430/labels{/name}","comments_url":"https://api.github.com/repos/hadley/ggplot2/issues/1430/comments","events_url":"https://api.github.com/repos/hadley/ggplot2/issues/1430/events","html_url":"https://github.com/hadley/ggplot2/issues/1430","id":121888406,"number":1430,"title":"stat_sum() ..prop.. request","user":{"login":"garrettgman","id":85014,"avatar_url":"https://avatars.githubusercontent.com/u/85014?v=3","gravatar_id":"","url":"https://api.github.com/users/garrettgman","html_url":"https://github.com/garrettgman","followers_url":"https://api.github.com/users/garrettgman/followers","following_url":"https://api.github.com/users/garrettgman/following{/other_user}","gists_url":"https://api.github.com/users/garrettgman/gists{/gist_id}","starred_url":"https://api.github.com/users/garrettgman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garrettgman/subscriptions","organizations_url":"https://api.github.com/users/garrettgman/orgs","repos_url":"https://api.github.com/users/garrettgman/repos","events_url":"https://api.github.com/users/garrettgman/events{/privacy}","received_events_url":"https://api.github.com/users/garrettgman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-13T00:02:49Z","updated_at":"2015-12-14T20:01:48Z","closed_at":"2015-12-14T20:01:48Z","body":"The `..prop..`variable of `stat_count()`/`stat_sum()` would be easier to use and demo if it grouped by the $x$ variable by default, e.g. if the two calls below did the same thing\r\n\r\n````\r\nggplot(data = diamonds) + \r\n  geom_count(mapping = aes(x = cut, y = clarity, size = ..prop..))\r\n````\r\n\r\n````\r\nggplot(data = diamonds) + \r\n  geom_count(mapping = aes(x = cut, y = clarity, size = ..prop.., group = cut))\r\n````\r\n\r\nIf the extra work for you and computation for R is slight, this would help the user as no one would currently make the first plot: it just makes equally sized points. One could override the default by setting group.\r\n\r\n"}}