{"action":"created","issue":{"url":"https://api.github.com/repos/gadenbuie/ggpomological/issues/2","repository_url":"https://api.github.com/repos/gadenbuie/ggpomological","labels_url":"https://api.github.com/repos/gadenbuie/ggpomological/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gadenbuie/ggpomological/issues/2/comments","events_url":"https://api.github.com/repos/gadenbuie/ggpomological/issues/2/events","html_url":"https://github.com/gadenbuie/ggpomological/issues/2","id":315324377,"number":2,"title":"another solution for `paint_pomological`","user":{"login":"GuangchuangYu","id":626539,"avatar_url":"https://avatars1.githubusercontent.com/u/626539?v=4","gravatar_id":"","url":"https://api.github.com/users/GuangchuangYu","html_url":"https://github.com/GuangchuangYu","followers_url":"https://api.github.com/users/GuangchuangYu/followers","following_url":"https://api.github.com/users/GuangchuangYu/following{/other_user}","gists_url":"https://api.github.com/users/GuangchuangYu/gists{/gist_id}","starred_url":"https://api.github.com/users/GuangchuangYu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuangchuangYu/subscriptions","organizations_url":"https://api.github.com/users/GuangchuangYu/orgs","repos_url":"https://api.github.com/users/GuangchuangYu/repos","events_url":"https://api.github.com/users/GuangchuangYu/events{/privacy}","received_events_url":"https://api.github.com/users/GuangchuangYu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-18T04:12:20Z","updated_at":"2018-04-18T05:28:25Z","closed_at":null,"author_association":"NONE","body":"```r\r\nbasic_iris_plot <- ggplot(iris) +\r\n  aes(x = Sepal.Length, y = Sepal.Width, color = Species) +\r\n  geom_point(size = 2)\r\n\r\nbasic_iris_plot <- basic_iris_plot + scale_color_pomological()\r\npomological_iris <- basic_iris_plot + theme_pomological_fancy()\r\n\r\nlibrary(ggimage) ## `geom_image`, `geom_subview` and `theme_transparent`\r\n\r\nggplot(d=data.frame(x=0:1, y=0:1), aes(x, y)) + \r\n    geom_image(image=ggpomological:::pomological_images(\"background\"),size=Inf) + \r\n    geom_subview(subview= pomological_iris+ theme_transparent(), width=Inf, height=Inf, x=.5, y=.5) +\r\n    theme_void()\r\n```\r\n\r\nThe output is still `gg` object. \r\n\r\nPS: I am the author of `ggimage`."},"comment":{"url":"https://api.github.com/repos/gadenbuie/ggpomological/issues/comments/382266549","html_url":"https://github.com/gadenbuie/ggpomological/issues/2#issuecomment-382266549","issue_url":"https://api.github.com/repos/gadenbuie/ggpomological/issues/2","id":382266549,"user":{"login":"GuangchuangYu","id":626539,"avatar_url":"https://avatars1.githubusercontent.com/u/626539?v=4","gravatar_id":"","url":"https://api.github.com/users/GuangchuangYu","html_url":"https://github.com/GuangchuangYu","followers_url":"https://api.github.com/users/GuangchuangYu/followers","following_url":"https://api.github.com/users/GuangchuangYu/following{/other_user}","gists_url":"https://api.github.com/users/GuangchuangYu/gists{/gist_id}","starred_url":"https://api.github.com/users/GuangchuangYu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuangchuangYu/subscriptions","organizations_url":"https://api.github.com/users/GuangchuangYu/orgs","repos_url":"https://api.github.com/users/GuangchuangYu/repos","events_url":"https://api.github.com/users/GuangchuangYu/events{/privacy}","received_events_url":"https://api.github.com/users/GuangchuangYu/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T05:28:25Z","updated_at":"2018-04-18T05:28:25Z","author_association":"NONE","body":"I create a shortcut in `ggimage`, now we can use `ggbackground` to add any background image for a `gg` object.\r\n\r\n```r\r\nggbackground(pomological_iris, ggpomological:::pomological_images(\"background\"))\r\n```\r\n"}}
{"actor":{"display_login":"GuangchuangYu"}}