{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/ggplot2/issues/1358","labels_url":"https://api.github.com/repos/hadley/ggplot2/issues/1358/labels{/name}","comments_url":"https://api.github.com/repos/hadley/ggplot2/issues/1358/comments","events_url":"https://api.github.com/repos/hadley/ggplot2/issues/1358/events","html_url":"https://github.com/hadley/ggplot2/issues/1358","id":109166939,"number":1358,"title":"Feature request: ability to add plot add-ons","user":{"login":"rpruim","id":722231,"avatar_url":"https://avatars.githubusercontent.com/u/722231?v=3","gravatar_id":"","url":"https://api.github.com/users/rpruim","html_url":"https://github.com/rpruim","followers_url":"https://api.github.com/users/rpruim/followers","following_url":"https://api.github.com/users/rpruim/following{/other_user}","gists_url":"https://api.github.com/users/rpruim/gists{/gist_id}","starred_url":"https://api.github.com/users/rpruim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpruim/subscriptions","organizations_url":"https://api.github.com/users/rpruim/orgs","repos_url":"https://api.github.com/users/rpruim/repos","events_url":"https://api.github.com/users/rpruim/events{/privacy}","received_events_url":"https://api.github.com/users/rpruim/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-30T19:57:26Z","updated_at":"2015-09-30T20:14:55Z","closed_at":"2015-09-30T20:05:24Z","body":"I'd like to be able to do something like\r\n```r\r\nmy_scales <- \r\n  scale_colour_manual(...) +\r\n  scale_shape_manual(...) +\r\n  scale_alpha_manual(...)\r\nplot1 + my_scales\r\nplot2 + my_scales\r\n```\r\nIs there a way to make this possible?\r\n\r\nAs is, I end up doing things like\r\n```r\r\nmy_scales <- function(plot) {\r\n  p +\r\n  scale_colour_manual(...) +\r\n  scale_shape_manual(...) +\r\n  scale_alpha_manual(...)\r\nplot1 %>% my_scales()\r\nplot2 %>% my_scales()\r\n```\r\nOf course, similar things hold for other plot add-ons as well as the scales.\r\n"},"comment":{"url":"https://api.github.com/repos/hadley/ggplot2/issues/comments/144527142","html_url":"https://github.com/hadley/ggplot2/issues/1358#issuecomment-144527142","issue_url":"https://api.github.com/repos/hadley/ggplot2/issues/1358","id":144527142,"user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T20:14:55Z","updated_at":"2015-09-30T20:14:55Z","body":"I don't think that's possible because of the way `+` works (without a lot of extra changes, anyway)"}}