{"action":"opened","number":90,"pull_request":{"url":"https://api.github.com/repos/ggobi/ggally/pulls/90","id":44508234,"html_url":"https://github.com/ggobi/ggally/pull/90","diff_url":"https://github.com/ggobi/ggally/pull/90.diff","patch_url":"https://github.com/ggobi/ggally/pull/90.patch","issue_url":"https://api.github.com/repos/ggobi/ggally/issues/90","number":90,"state":"open","locked":false,"title":"use aes() and pass (or wrap) custom functions","user":{"login":"schloerke","id":93231,"avatar_url":"https://avatars.githubusercontent.com/u/93231?v=3","gravatar_id":"","url":"https://api.github.com/users/schloerke","html_url":"https://github.com/schloerke","followers_url":"https://api.github.com/users/schloerke/followers","following_url":"https://api.github.com/users/schloerke/following{/other_user}","gists_url":"https://api.github.com/users/schloerke/gists{/gist_id}","starred_url":"https://api.github.com/users/schloerke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schloerke/subscriptions","organizations_url":"https://api.github.com/users/schloerke/orgs","repos_url":"https://api.github.com/users/schloerke/repos","events_url":"https://api.github.com/users/schloerke/events{/privacy}","received_events_url":"https://api.github.com/users/schloerke/received_events","type":"User","site_admin":false},"body":"be able to pass functions directly to ```ggpairs```\r\n\r\nEx: \r\n```{r}\r\ndata(\"tips\", package = \"reshape\")\r\npm <- ggpairs(\r\n  tips, \r\n  columns = 1:3, \r\n  mapping = ggplot2::aes(color = sex), \r\n  lower = list(\r\n    combo = wrap(\"facethist\", binwidth = 1),\r\n    continuous = wrap(ggally_points, size = 5)\r\n  )\r\n)\r\npm\r\n```\r\n![screenshot 2015-09-08 23 47 48](https://cloud.githubusercontent.com/assets/93231/9752932/22a5a7ce-5684-11e5-8ef1-6cd30dc1d2f3.png)\r\n\r\n```{}\r\n> str(pm)\r\n\r\nCustom str.ggmatrix output: \r\nTo view original object use 'str(pm, raw = TRUE)'\r\n\r\nList of 13\r\n $ data       :'data.frame':\t244 obs. of  7 variables:\r\n  ..$ total_bill: num [1:244] 17 10.3 21 23.7 24.6 ...\r\n  ..$ tip       : num [1:244] 1.01 1.66 3.5 3.31 3.61 4.71 2 3.12 1.96 3.23 ...\r\n  ..$ sex       : Factor w/ 2 levels \"Female\",\"Male\": 1 2 2 2 1 2 2 2 2 2 ...\r\n  ..$ smoker    : Factor w/ 2 levels \"No\",\"Yes\": 1 1 1 1 1 1 1 1 1 1 ...\r\n  ..$ day       : Factor w/ 4 levels \"Fri\",\"Sat\",\"Sun\",..: 3 3 3 3 3 3 3 3 3 3 ...\r\n  ..$ time      : Factor w/ 2 levels \"Dinner\",\"Lunch\": 1 1 1 1 1 1 1 1 1 1 ...\r\n  ..$ size      : int [1:244] 2 3 3 2 4 4 2 4 2 2 ...\r\n $ plots      :List of 9\r\n  ..$ : chr \"PM; aes: c(x = total_bill, colour = sex); fn: {wrap; fn: 'ggally_densityDiag'; with params: c()}; gg: FALSE\"\r\n  ..$ : chr \"PM; aes: c(x = tip, y = total_bill, colour = sex); fn: {wrap; fn: 'ggally_cor'; with params: c()}; gg: FALSE\"\r\n  ..$ : chr \"PM; aes: c(x = sex, y = total_bill, fill = sex); fn: {wrap; fn: 'ggally_box'; with params: c()}; gg: FALSE\"\r\n  ..$ : chr \"PM; aes: c(x = total_bill, y = tip, colour = sex); fn: {wrap; fn: 'funcVal'; with params: c(size = 5)}; gg: FALSE\"\r\n  ..$ : chr \"PM; aes: c(x = tip, colour = sex); fn: {wrap; fn: 'ggally_densityDiag'; with params: c()}; gg: FALSE\"\r\n  ..$ : chr \"PM; aes: c(x = sex, y = tip, fill = sex); fn: {wrap; fn: 'ggally_box'; with params: c()}; gg: FALSE\"\r\n  ..$ : chr \"PM; aes: c(x = total_bill, y = sex, fill = sex); fn: {wrap; fn: 'ggally_facethist'; with params: c(binwidth = 1)}; gg: FALSE\"\r\n  ..$ : chr \"PM; aes: c(x = tip, y = sex, fill = sex); fn: {wrap; fn: 'ggally_facethist'; with params: c(binwidth = 1)}; gg: FALSE\"\r\n  ..$ : chr \"PM; aes: c(x = sex, fill = sex); fn: {wrap; fn: 'ggally_barDiag'; with params: c()}; gg: FALSE\"\r\n $ title      : chr \"\"\r\n $ verbose    : logi FALSE\r\n $ printInfo  : logi FALSE\r\n $ axisLabels : chr \"show\"\r\n $ xAxisLabels: chr [1:3] \"total_bill\" \"tip\" \"sex\"\r\n $ yAxisLabels: chr [1:3] \"total_bill\" \"tip\" \"sex\"\r\n $ legends    : logi FALSE\r\n $ gg         : NULL\r\n $ nrow       : int 3\r\n $ ncol       : int 3\r\n $ byrow      : logi TRUE\r\n - attr(*, \"_class\")= chr [1:2] \"gg\" \"ggmatrix\"```","created_at":"2015-09-09T03:54:34Z","updated_at":"2015-09-09T03:54:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ggobi/ggally/pulls/90/commits","review_comments_url":"https://api.github.com/repos/ggobi/ggally/pulls/90/comments","review_comment_url":"https://api.github.com/repos/ggobi/ggally/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ggobi/ggally/issues/90/comments","statuses_url":"https://api.github.com/repos/ggobi/ggally/statuses/b4739bef3b2b81a83dec70d14f55e9a74b74bded","head":{"label":"ggobi:params","ref":"params","sha":"b4739bef3b2b81a83dec70d14f55e9a74b74bded","user":{"login":"ggobi","id":423638,"avatar_url":"https://avatars.githubusercontent.com/u/423638?v=3","gravatar_id":"","url":"https://api.github.com/users/ggobi","html_url":"https://github.com/ggobi","followers_url":"https://api.github.com/users/ggobi/followers","following_url":"https://api.github.com/users/ggobi/following{/other_user}","gists_url":"https://api.github.com/users/ggobi/gists{/gist_id}","starred_url":"https://api.github.com/users/ggobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggobi/subscriptions","organizations_url":"https://api.github.com/users/ggobi/orgs","repos_url":"https://api.github.com/users/ggobi/repos","events_url":"https://api.github.com/users/ggobi/events{/privacy}","received_events_url":"https://api.github.com/users/ggobi/received_events","type":"Organization","site_admin":false},"repo":{"id":1384794,"name":"ggally","full_name":"ggobi/ggally","owner":{"login":"ggobi","id":423638,"avatar_url":"https://avatars.githubusercontent.com/u/423638?v=3","gravatar_id":"","url":"https://api.github.com/users/ggobi","html_url":"https://github.com/ggobi","followers_url":"https://api.github.com/users/ggobi/followers","following_url":"https://api.github.com/users/ggobi/following{/other_user}","gists_url":"https://api.github.com/users/ggobi/gists{/gist_id}","starred_url":"https://api.github.com/users/ggobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggobi/subscriptions","organizations_url":"https://api.github.com/users/ggobi/orgs","repos_url":"https://api.github.com/users/ggobi/repos","events_url":"https://api.github.com/users/ggobi/events{/privacy}","received_events_url":"https://api.github.com/users/ggobi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ggobi/ggally","description":"Ally to ggplot2","fork":false,"url":"https://api.github.com/repos/ggobi/ggally","forks_url":"https://api.github.com/repos/ggobi/ggally/forks","keys_url":"https://api.github.com/repos/ggobi/ggally/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ggobi/ggally/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ggobi/ggally/teams","hooks_url":"https://api.github.com/repos/ggobi/ggally/hooks","issue_events_url":"https://api.github.com/repos/ggobi/ggally/issues/events{/number}","events_url":"https://api.github.com/repos/ggobi/ggally/events","assignees_url":"https://api.github.com/repos/ggobi/ggally/assignees{/user}","branches_url":"https://api.github.com/repos/ggobi/ggally/branches{/branch}","tags_url":"https://api.github.com/repos/ggobi/ggally/tags","blobs_url":"https://api.github.com/repos/ggobi/ggally/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ggobi/ggally/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ggobi/ggally/git/refs{/sha}","trees_url":"https://api.github.com/repos/ggobi/ggally/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ggobi/ggally/statuses/{sha}","languages_url":"https://api.github.com/repos/ggobi/ggally/languages","stargazers_url":"https://api.github.com/repos/ggobi/ggally/stargazers","contributors_url":"https://api.github.com/repos/ggobi/ggally/contributors","subscribers_url":"https://api.github.com/repos/ggobi/ggally/subscribers","subscription_url":"https://api.github.com/repos/ggobi/ggally/subscription","commits_url":"https://api.github.com/repos/ggobi/ggally/commits{/sha}","git_commits_url":"https://api.github.com/repos/ggobi/ggally/git/commits{/sha}","comments_url":"https://api.github.com/repos/ggobi/ggally/comments{/number}","issue_comment_url":"https://api.github.com/repos/ggobi/ggally/issues/comments{/number}","contents_url":"https://api.github.com/repos/ggobi/ggally/contents/{+path}","compare_url":"https://api.github.com/repos/ggobi/ggally/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ggobi/ggally/merges","archive_url":"https://api.github.com/repos/ggobi/ggally/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ggobi/ggally/downloads","issues_url":"https://api.github.com/repos/ggobi/ggally/issues{/number}","pulls_url":"https://api.github.com/repos/ggobi/ggally/pulls{/number}","milestones_url":"https://api.github.com/repos/ggobi/ggally/milestones{/number}","notifications_url":"https://api.github.com/repos/ggobi/ggally/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ggobi/ggally/labels{/name}","releases_url":"https://api.github.com/repos/ggobi/ggally/releases{/id}","created_at":"2011-02-19T00:18:46Z","updated_at":"2015-09-07T14:53:58Z","pushed_at":"2015-09-09T03:39:25Z","git_url":"git://github.com/ggobi/ggally.git","ssh_url":"git@github.com:ggobi/ggally.git","clone_url":"https://github.com/ggobi/ggally.git","svn_url":"https://github.com/ggobi/ggally","homepage":"","size":5477,"stargazers_count":40,"watchers_count":40,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":14,"forks":31,"open_issues":14,"watchers":40,"default_branch":"master"}},"base":{"label":"ggobi:dev","ref":"dev","sha":"5284533c93373a53e9a193de68ecca2b251b1154","user":{"login":"ggobi","id":423638,"avatar_url":"https://avatars.githubusercontent.com/u/423638?v=3","gravatar_id":"","url":"https://api.github.com/users/ggobi","html_url":"https://github.com/ggobi","followers_url":"https://api.github.com/users/ggobi/followers","following_url":"https://api.github.com/users/ggobi/following{/other_user}","gists_url":"https://api.github.com/users/ggobi/gists{/gist_id}","starred_url":"https://api.github.com/users/ggobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggobi/subscriptions","organizations_url":"https://api.github.com/users/ggobi/orgs","repos_url":"https://api.github.com/users/ggobi/repos","events_url":"https://api.github.com/users/ggobi/events{/privacy}","received_events_url":"https://api.github.com/users/ggobi/received_events","type":"Organization","site_admin":false},"repo":{"id":1384794,"name":"ggally","full_name":"ggobi/ggally","owner":{"login":"ggobi","id":423638,"avatar_url":"https://avatars.githubusercontent.com/u/423638?v=3","gravatar_id":"","url":"https://api.github.com/users/ggobi","html_url":"https://github.com/ggobi","followers_url":"https://api.github.com/users/ggobi/followers","following_url":"https://api.github.com/users/ggobi/following{/other_user}","gists_url":"https://api.github.com/users/ggobi/gists{/gist_id}","starred_url":"https://api.github.com/users/ggobi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggobi/subscriptions","organizations_url":"https://api.github.com/users/ggobi/orgs","repos_url":"https://api.github.com/users/ggobi/repos","events_url":"https://api.github.com/users/ggobi/events{/privacy}","received_events_url":"https://api.github.com/users/ggobi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ggobi/ggally","description":"Ally to ggplot2","fork":false,"url":"https://api.github.com/repos/ggobi/ggally","forks_url":"https://api.github.com/repos/ggobi/ggally/forks","keys_url":"https://api.github.com/repos/ggobi/ggally/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ggobi/ggally/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ggobi/ggally/teams","hooks_url":"https://api.github.com/repos/ggobi/ggally/hooks","issue_events_url":"https://api.github.com/repos/ggobi/ggally/issues/events{/number}","events_url":"https://api.github.com/repos/ggobi/ggally/events","assignees_url":"https://api.github.com/repos/ggobi/ggally/assignees{/user}","branches_url":"https://api.github.com/repos/ggobi/ggally/branches{/branch}","tags_url":"https://api.github.com/repos/ggobi/ggally/tags","blobs_url":"https://api.github.com/repos/ggobi/ggally/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ggobi/ggally/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ggobi/ggally/git/refs{/sha}","trees_url":"https://api.github.com/repos/ggobi/ggally/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ggobi/ggally/statuses/{sha}","languages_url":"https://api.github.com/repos/ggobi/ggally/languages","stargazers_url":"https://api.github.com/repos/ggobi/ggally/stargazers","contributors_url":"https://api.github.com/repos/ggobi/ggally/contributors","subscribers_url":"https://api.github.com/repos/ggobi/ggally/subscribers","subscription_url":"https://api.github.com/repos/ggobi/ggally/subscription","commits_url":"https://api.github.com/repos/ggobi/ggally/commits{/sha}","git_commits_url":"https://api.github.com/repos/ggobi/ggally/git/commits{/sha}","comments_url":"https://api.github.com/repos/ggobi/ggally/comments{/number}","issue_comment_url":"https://api.github.com/repos/ggobi/ggally/issues/comments{/number}","contents_url":"https://api.github.com/repos/ggobi/ggally/contents/{+path}","compare_url":"https://api.github.com/repos/ggobi/ggally/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ggobi/ggally/merges","archive_url":"https://api.github.com/repos/ggobi/ggally/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ggobi/ggally/downloads","issues_url":"https://api.github.com/repos/ggobi/ggally/issues{/number}","pulls_url":"https://api.github.com/repos/ggobi/ggally/pulls{/number}","milestones_url":"https://api.github.com/repos/ggobi/ggally/milestones{/number}","notifications_url":"https://api.github.com/repos/ggobi/ggally/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ggobi/ggally/labels{/name}","releases_url":"https://api.github.com/repos/ggobi/ggally/releases{/id}","created_at":"2011-02-19T00:18:46Z","updated_at":"2015-09-07T14:53:58Z","pushed_at":"2015-09-09T03:39:25Z","git_url":"git://github.com/ggobi/ggally.git","ssh_url":"git@github.com:ggobi/ggally.git","clone_url":"https://github.com/ggobi/ggally.git","svn_url":"https://github.com/ggobi/ggally","homepage":"","size":5477,"stargazers_count":40,"watchers_count":40,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":14,"forks":31,"open_issues":14,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ggobi/ggally/pulls/90"},"html":{"href":"https://github.com/ggobi/ggally/pull/90"},"issue":{"href":"https://api.github.com/repos/ggobi/ggally/issues/90"},"comments":{"href":"https://api.github.com/repos/ggobi/ggally/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/ggobi/ggally/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/ggobi/ggally/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ggobi/ggally/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/ggobi/ggally/statuses/b4739bef3b2b81a83dec70d14f55e9a74b74bded"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":35,"additions":507,"deletions":250,"changed_files":16}}