{"action":"closed","number":115,"pull_request":{"url":"https://api.github.com/repos/stan-dev/bayesplot/pulls/115","id":141983422,"html_url":"https://github.com/stan-dev/bayesplot/pull/115","diff_url":"https://github.com/stan-dev/bayesplot/pull/115.diff","patch_url":"https://github.com/stan-dev/bayesplot/pull/115.patch","issue_url":"https://api.github.com/repos/stan-dev/bayesplot/issues/115","number":115,"state":"closed","locked":false,"title":"refactor mcmc_intervals() and mcmc_areas()","user":{"login":"tjmahr","id":1890315,"avatar_url":"https://avatars0.githubusercontent.com/u/1890315?v=4","gravatar_id":"","url":"https://api.github.com/users/tjmahr","html_url":"https://github.com/tjmahr","followers_url":"https://api.github.com/users/tjmahr/followers","following_url":"https://api.github.com/users/tjmahr/following{/other_user}","gists_url":"https://api.github.com/users/tjmahr/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmahr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmahr/subscriptions","organizations_url":"https://api.github.com/users/tjmahr/orgs","repos_url":"https://api.github.com/users/tjmahr/repos","events_url":"https://api.github.com/users/tjmahr/events{/privacy}","received_events_url":"https://api.github.com/users/tjmahr/received_events","type":"User","site_admin":false},"body":"Closes #103.\r\n\r\nAdvances #97  (add `_data()` functions).\r\n\r\nThese plots now use a discrete y-axis. Previously, we used a continuous y-axis, but relabeled the integer labels with parameter names. This caused some unexpected behavior. \r\n\r\nWe also use ggridges to draw the density curves in order to keep a discrete y-axis. One possibly unexpected implementation detail is that the point estimate in mcmc_areas() is no longer a vertical line segment, but a very narrow interval drawn by ggridges as well.\r\n\r\nThe main visual differences are:\r\n\r\n* these plots no longer have a \"forehead\" for an extra step on the y-axis. (This could in principle be restored)\r\n* that the density curves are _not_ normalized to have the same height. \r\n\r\nPreviously, a flat, thin density curve would be stretched vertically and look like a wall.\r\n\r\n![image](https://user-images.githubusercontent.com/1890315/30620464-2066299a-9d6b-11e7-9846-c0e7ca297e22.png)\r\n\r\nNow it looks more like a flat density curve and the spikes in the other parameters look like spikes.\r\n\r\n![image](https://user-images.githubusercontent.com/1890315/30620495-47f371fc-9d6b-11e7-9ca1-85a508776105.png)\r\n\r\n(Of course, neither of these plots is any good, because of the variables being plotted.)\r\n\r\n## Visual diffs\r\n\r\nThese are the plots in the examples. \r\n\r\n_Current_\r\n![01-current](https://user-images.githubusercontent.com/1890315/30620612-1146c770-9d6c-11e7-8052-e363ea9d0f77.png)\r\n_Update_\r\n![01-updated](https://user-images.githubusercontent.com/1890315/30620613-114e40ea-9d6c-11e7-85e4-18bdfc146c4d.png)\r\n***\r\n_Current_\r\n![02-current](https://user-images.githubusercontent.com/1890315/30620620-16d3983a-9d6c-11e7-8e32-b8f60499fb36.png)\r\n_Update_\r\n![02-updated](https://user-images.githubusercontent.com/1890315/30620622-16ea7dde-9d6c-11e7-8c1d-0b274b215221.png)\r\n***\r\n_Current_\r\n![03-current](https://user-images.githubusercontent.com/1890315/30620626-16ee5d3c-9d6c-11e7-91c6-8248ebe943c7.png)\r\n_Update_\r\n![03-updated](https://user-images.githubusercontent.com/1890315/30620625-16ee466c-9d6c-11e7-9e5d-a4436c25dd85.png)\r\n***\r\n_Current_\r\n![04-current](https://user-images.githubusercontent.com/1890315/30620632-170d2a78-9d6c-11e7-8210-141974c6a622.png)\r\n_Update_\r\n![04-updated](https://user-images.githubusercontent.com/1890315/30620624-16edf298-9d6c-11e7-99ec-e0a7ffdfcc67.png)\r\n***\r\n_Current_\r\n![05-current](https://user-images.githubusercontent.com/1890315/30620623-16ebfcd6-9d6c-11e7-92cc-ca32bf2fc33d.png)\r\n_Update_\r\n![05-updated](https://user-images.githubusercontent.com/1890315/30620628-1702ebe4-9d6c-11e7-9083-b1b67f5aa860.png)\r\n***\r\n_Current_\r\n![06-current](https://user-images.githubusercontent.com/1890315/30620627-1700614e-9d6c-11e7-8f85-0771bfd92597.png)\r\n_Update_\r\n![06-updated](https://user-images.githubusercontent.com/1890315/30620629-1707b2aa-9d6c-11e7-9ab2-cf140aed0fd0.png)\r\n***\r\n_Current_\r\n![07-current](https://user-images.githubusercontent.com/1890315/30620630-17086bbe-9d6c-11e7-88f9-491d39607d22.png)\r\n_Update_\r\n![07-updated](https://user-images.githubusercontent.com/1890315/30620631-1708ce6a-9d6c-11e7-950d-53079485d67a.png)\r\n***\r\n_Current_\r\n![08-current](https://user-images.githubusercontent.com/1890315/30620633-171601ca-9d6c-11e7-813b-b69846190b5d.png)\r\n_Update_\r\n![08-updated](https://user-images.githubusercontent.com/1890315/30620634-17189e8a-9d6c-11e7-9d2a-814b89ac2a45.png)\r\n***\r\n_Current_\r\n![09-current](https://user-images.githubusercontent.com/1890315/30620640-176c56c4-9d6c-11e7-8198-08d296c09d4f.png)\r\n_Update_\r\n![09-updated](https://user-images.githubusercontent.com/1890315/30620637-17209892-9d6c-11e7-9b5e-058f9883eb9b.png)\r\n***\r\n_Current_\r\n![10-current](https://user-images.githubusercontent.com/1890315/30620636-171d3cd8-9d6c-11e7-8a67-25c803cf3b8a.png)\r\n_Update_\r\n![10-updated](https://user-images.githubusercontent.com/1890315/30620635-171d2d06-9d6c-11e7-9b80-a230e60e7470.png)\r\n***\r\n_Current_\r\n![11-current](https://user-images.githubusercontent.com/1890315/30620638-172bf7e6-9d6c-11e7-8c29-29e34197068e.png)\r\n_Update_\r\n![11-updated](https://user-images.githubusercontent.com/1890315/30620621-16d51516-9d6c-11e7-8cb4-c6274f530080.png)\r\n\r\n","created_at":"2017-09-20T00:02:08Z","updated_at":"2017-09-21T05:09:13Z","closed_at":"2017-09-21T05:09:13Z","merged_at":"2017-09-21T05:09:13Z","merge_commit_sha":"7174d224d0f9e59fa03a64b4ebafbcf37340686d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/stan-dev/bayesplot/pulls/115/commits","review_comments_url":"https://api.github.com/repos/stan-dev/bayesplot/pulls/115/comments","review_comment_url":"https://api.github.com/repos/stan-dev/bayesplot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stan-dev/bayesplot/issues/115/comments","statuses_url":"https://api.github.com/repos/stan-dev/bayesplot/statuses/67f0993719c877a5132fd8b1c3f3c4b37aa7e22d","head":{"label":"tjmahr:iss103","ref":"iss103","sha":"67f0993719c877a5132fd8b1c3f3c4b37aa7e22d","user":{"login":"tjmahr","id":1890315,"avatar_url":"https://avatars0.githubusercontent.com/u/1890315?v=4","gravatar_id":"","url":"https://api.github.com/users/tjmahr","html_url":"https://github.com/tjmahr","followers_url":"https://api.github.com/users/tjmahr/followers","following_url":"https://api.github.com/users/tjmahr/following{/other_user}","gists_url":"https://api.github.com/users/tjmahr/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmahr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmahr/subscriptions","organizations_url":"https://api.github.com/users/tjmahr/orgs","repos_url":"https://api.github.com/users/tjmahr/repos","events_url":"https://api.github.com/users/tjmahr/events{/privacy}","received_events_url":"https://api.github.com/users/tjmahr/received_events","type":"User","site_admin":false},"repo":{"id":99377623,"name":"bayesplot","full_name":"tjmahr/bayesplot","owner":{"login":"tjmahr","id":1890315,"avatar_url":"https://avatars0.githubusercontent.com/u/1890315?v=4","gravatar_id":"","url":"https://api.github.com/users/tjmahr","html_url":"https://github.com/tjmahr","followers_url":"https://api.github.com/users/tjmahr/followers","following_url":"https://api.github.com/users/tjmahr/following{/other_user}","gists_url":"https://api.github.com/users/tjmahr/gists{/gist_id}","starred_url":"https://api.github.com/users/tjmahr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjmahr/subscriptions","organizations_url":"https://api.github.com/users/tjmahr/orgs","repos_url":"https://api.github.com/users/tjmahr/repos","events_url":"https://api.github.com/users/tjmahr/events{/privacy}","received_events_url":"https://api.github.com/users/tjmahr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tjmahr/bayesplot","description":"bayesplot R package for plotting Bayesian models","fork":true,"url":"https://api.github.com/repos/tjmahr/bayesplot","forks_url":"https://api.github.com/repos/tjmahr/bayesplot/forks","keys_url":"https://api.github.com/repos/tjmahr/bayesplot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tjmahr/bayesplot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tjmahr/bayesplot/teams","hooks_url":"https://api.github.com/repos/tjmahr/bayesplot/hooks","issue_events_url":"https://api.github.com/repos/tjmahr/bayesplot/issues/events{/number}","events_url":"https://api.github.com/repos/tjmahr/bayesplot/events","assignees_url":"https://api.github.com/repos/tjmahr/bayesplot/assignees{/user}","branches_url":"https://api.github.com/repos/tjmahr/bayesplot/branches{/branch}","tags_url":"https://api.github.com/repos/tjmahr/bayesplot/tags","blobs_url":"https://api.github.com/repos/tjmahr/bayesplot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tjmahr/bayesplot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tjmahr/bayesplot/git/refs{/sha}","trees_url":"https://api.github.com/repos/tjmahr/bayesplot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tjmahr/bayesplot/statuses/{sha}","languages_url":"https://api.github.com/repos/tjmahr/bayesplot/languages","stargazers_url":"https://api.github.com/repos/tjmahr/bayesplot/stargazers","contributors_url":"https://api.github.com/repos/tjmahr/bayesplot/contributors","subscribers_url":"https://api.github.com/repos/tjmahr/bayesplot/subscribers","subscription_url":"https://api.github.com/repos/tjmahr/bayesplot/subscription","commits_url":"https://api.github.com/repos/tjmahr/bayesplot/commits{/sha}","git_commits_url":"https://api.github.com/repos/tjmahr/bayesplot/git/commits{/sha}","comments_url":"https://api.github.com/repos/tjmahr/bayesplot/comments{/number}","issue_comment_url":"https://api.github.com/repos/tjmahr/bayesplot/issues/comments{/number}","contents_url":"https://api.github.com/repos/tjmahr/bayesplot/contents/{+path}","compare_url":"https://api.github.com/repos/tjmahr/bayesplot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tjmahr/bayesplot/merges","archive_url":"https://api.github.com/repos/tjmahr/bayesplot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tjmahr/bayesplot/downloads","issues_url":"https://api.github.com/repos/tjmahr/bayesplot/issues{/number}","pulls_url":"https://api.github.com/repos/tjmahr/bayesplot/pulls{/number}","milestones_url":"https://api.github.com/repos/tjmahr/bayesplot/milestones{/number}","notifications_url":"https://api.github.com/repos/tjmahr/bayesplot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tjmahr/bayesplot/labels{/name}","releases_url":"https://api.github.com/repos/tjmahr/bayesplot/releases{/id}","deployments_url":"https://api.github.com/repos/tjmahr/bayesplot/deployments","created_at":"2017-08-04T20:31:57Z","updated_at":"2017-08-04T20:31:58Z","pushed_at":"2017-09-20T20:23:24Z","git_url":"git://github.com/tjmahr/bayesplot.git","ssh_url":"git@github.com:tjmahr/bayesplot.git","clone_url":"https://github.com/tjmahr/bayesplot.git","svn_url":"https://github.com/tjmahr/bayesplot","homepage":"http://mc-stan.org/interfaces/bayesplot","size":84137,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stan-dev:master","ref":"master","sha":"492e91fe2227cc63666c4ef1e457027c2e9a0202","user":{"login":"stan-dev","id":3374820,"avatar_url":"https://avatars2.githubusercontent.com/u/3374820?v=4","gravatar_id":"","url":"https://api.github.com/users/stan-dev","html_url":"https://github.com/stan-dev","followers_url":"https://api.github.com/users/stan-dev/followers","following_url":"https://api.github.com/users/stan-dev/following{/other_user}","gists_url":"https://api.github.com/users/stan-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/stan-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stan-dev/subscriptions","organizations_url":"https://api.github.com/users/stan-dev/orgs","repos_url":"https://api.github.com/users/stan-dev/repos","events_url":"https://api.github.com/users/stan-dev/events{/privacy}","received_events_url":"https://api.github.com/users/stan-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":59324359,"name":"bayesplot","full_name":"stan-dev/bayesplot","owner":{"login":"stan-dev","id":3374820,"avatar_url":"https://avatars2.githubusercontent.com/u/3374820?v=4","gravatar_id":"","url":"https://api.github.com/users/stan-dev","html_url":"https://github.com/stan-dev","followers_url":"https://api.github.com/users/stan-dev/followers","following_url":"https://api.github.com/users/stan-dev/following{/other_user}","gists_url":"https://api.github.com/users/stan-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/stan-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stan-dev/subscriptions","organizations_url":"https://api.github.com/users/stan-dev/orgs","repos_url":"https://api.github.com/users/stan-dev/repos","events_url":"https://api.github.com/users/stan-dev/events{/privacy}","received_events_url":"https://api.github.com/users/stan-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stan-dev/bayesplot","description":"bayesplot R package for plotting Bayesian models","fork":false,"url":"https://api.github.com/repos/stan-dev/bayesplot","forks_url":"https://api.github.com/repos/stan-dev/bayesplot/forks","keys_url":"https://api.github.com/repos/stan-dev/bayesplot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stan-dev/bayesplot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stan-dev/bayesplot/teams","hooks_url":"https://api.github.com/repos/stan-dev/bayesplot/hooks","issue_events_url":"https://api.github.com/repos/stan-dev/bayesplot/issues/events{/number}","events_url":"https://api.github.com/repos/stan-dev/bayesplot/events","assignees_url":"https://api.github.com/repos/stan-dev/bayesplot/assignees{/user}","branches_url":"https://api.github.com/repos/stan-dev/bayesplot/branches{/branch}","tags_url":"https://api.github.com/repos/stan-dev/bayesplot/tags","blobs_url":"https://api.github.com/repos/stan-dev/bayesplot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stan-dev/bayesplot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stan-dev/bayesplot/git/refs{/sha}","trees_url":"https://api.github.com/repos/stan-dev/bayesplot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stan-dev/bayesplot/statuses/{sha}","languages_url":"https://api.github.com/repos/stan-dev/bayesplot/languages","stargazers_url":"https://api.github.com/repos/stan-dev/bayesplot/stargazers","contributors_url":"https://api.github.com/repos/stan-dev/bayesplot/contributors","subscribers_url":"https://api.github.com/repos/stan-dev/bayesplot/subscribers","subscription_url":"https://api.github.com/repos/stan-dev/bayesplot/subscription","commits_url":"https://api.github.com/repos/stan-dev/bayesplot/commits{/sha}","git_commits_url":"https://api.github.com/repos/stan-dev/bayesplot/git/commits{/sha}","comments_url":"https://api.github.com/repos/stan-dev/bayesplot/comments{/number}","issue_comment_url":"https://api.github.com/repos/stan-dev/bayesplot/issues/comments{/number}","contents_url":"https://api.github.com/repos/stan-dev/bayesplot/contents/{+path}","compare_url":"https://api.github.com/repos/stan-dev/bayesplot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stan-dev/bayesplot/merges","archive_url":"https://api.github.com/repos/stan-dev/bayesplot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stan-dev/bayesplot/downloads","issues_url":"https://api.github.com/repos/stan-dev/bayesplot/issues{/number}","pulls_url":"https://api.github.com/repos/stan-dev/bayesplot/pulls{/number}","milestones_url":"https://api.github.com/repos/stan-dev/bayesplot/milestones{/number}","notifications_url":"https://api.github.com/repos/stan-dev/bayesplot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stan-dev/bayesplot/labels{/name}","releases_url":"https://api.github.com/repos/stan-dev/bayesplot/releases{/id}","deployments_url":"https://api.github.com/repos/stan-dev/bayesplot/deployments","created_at":"2016-05-20T20:28:56Z","updated_at":"2017-09-14T21:40:03Z","pushed_at":"2017-09-21T05:09:13Z","git_url":"git://github.com/stan-dev/bayesplot.git","ssh_url":"git@github.com:stan-dev/bayesplot.git","clone_url":"https://github.com/stan-dev/bayesplot.git","svn_url":"https://github.com/stan-dev/bayesplot","homepage":"http://mc-stan.org/bayesplot","size":86135,"stargazers_count":70,"watchers_count":70,"language":"R","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":11,"forks":17,"open_issues":11,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stan-dev/bayesplot/pulls/115"},"html":{"href":"https://github.com/stan-dev/bayesplot/pull/115"},"issue":{"href":"https://api.github.com/repos/stan-dev/bayesplot/issues/115"},"comments":{"href":"https://api.github.com/repos/stan-dev/bayesplot/issues/115/comments"},"review_comments":{"href":"https://api.github.com/repos/stan-dev/bayesplot/pulls/115/comments"},"review_comment":{"href":"https://api.github.com/repos/stan-dev/bayesplot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stan-dev/bayesplot/pulls/115/commits"},"statuses":{"href":"https://api.github.com/repos/stan-dev/bayesplot/statuses/67f0993719c877a5132fd8b1c3f3c4b37aa7e22d"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"jgabry","id":7796803,"avatar_url":"https://avatars2.githubusercontent.com/u/7796803?v=4","gravatar_id":"","url":"https://api.github.com/users/jgabry","html_url":"https://github.com/jgabry","followers_url":"https://api.github.com/users/jgabry/followers","following_url":"https://api.github.com/users/jgabry/following{/other_user}","gists_url":"https://api.github.com/users/jgabry/gists{/gist_id}","starred_url":"https://api.github.com/users/jgabry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgabry/subscriptions","organizations_url":"https://api.github.com/users/jgabry/orgs","repos_url":"https://api.github.com/users/jgabry/repos","events_url":"https://api.github.com/users/jgabry/events{/privacy}","received_events_url":"https://api.github.com/users/jgabry/received_events","type":"User","site_admin":false},"comments":5,"review_comments":6,"maintainer_can_modify":false,"commits":28,"additions":589,"deletions":289,"changed_files":8}}
{"actor":{"display_login":"jgabry"}}