{"action":"created","issue":{"url":"https://api.github.com/repos/const-ae/ggsignif/issues/23","repository_url":"https://api.github.com/repos/const-ae/ggsignif","labels_url":"https://api.github.com/repos/const-ae/ggsignif/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/const-ae/ggsignif/issues/23/comments","events_url":"https://api.github.com/repos/const-ae/ggsignif/issues/23/events","html_url":"https://github.com/const-ae/ggsignif/issues/23","id":239738256,"number":23,"title":"Custom annotations when using facets","user":{"login":"basiliscus79","id":29795518,"avatar_url":"https://avatars0.githubusercontent.com/u/29795518?v=3","gravatar_id":"","url":"https://api.github.com/users/basiliscus79","html_url":"https://github.com/basiliscus79","followers_url":"https://api.github.com/users/basiliscus79/followers","following_url":"https://api.github.com/users/basiliscus79/following{/other_user}","gists_url":"https://api.github.com/users/basiliscus79/gists{/gist_id}","starred_url":"https://api.github.com/users/basiliscus79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basiliscus79/subscriptions","organizations_url":"https://api.github.com/users/basiliscus79/orgs","repos_url":"https://api.github.com/users/basiliscus79/repos","events_url":"https://api.github.com/users/basiliscus79/events{/privacy}","received_events_url":"https://api.github.com/users/basiliscus79/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-30T10:20:29Z","updated_at":"2017-07-03T15:51:35Z","closed_at":null,"body":"Hello, I am trying to add custom annotations to ggplot2 faceted (facet_wrap) barplots and I am unable to make it work.\r\nWhen I use the built-in tests in stat_signif() everything seems to work, from a technical standpoint, since I see the faceted barplots with all selected contrasts annotated by pvalues. Nonetheless I see strange things, like bars where there should clearly a statistically significant difference that are non-significant.\r\nTherefore I decided to  make tests separately and then add annotations in a custom way on the barplots.\r\nI tried and it works nicely when I do a single plot, but when I add facets nothing works, I see just plain barplots without any annotation. I have tried to make it work by adding repeated lists to 'comparisons'  and 'annotations' but the way it works is by piling each of the list elements on top of each other on every single plot of the facets rather than using one element per facet plot.\r\nI hope I was able to explain my issue in a clear way.\r\n\r\nThanks for any suggestion\r\n\r\nMichele\r\n"},"comment":{"url":"https://api.github.com/repos/const-ae/ggsignif/issues/comments/312680947","html_url":"https://github.com/const-ae/ggsignif/issues/23#issuecomment-312680947","issue_url":"https://api.github.com/repos/const-ae/ggsignif/issues/23","id":312680947,"user":{"login":"basiliscus79","id":29795518,"avatar_url":"https://avatars0.githubusercontent.com/u/29795518?v=3","gravatar_id":"","url":"https://api.github.com/users/basiliscus79","html_url":"https://github.com/basiliscus79","followers_url":"https://api.github.com/users/basiliscus79/followers","following_url":"https://api.github.com/users/basiliscus79/following{/other_user}","gists_url":"https://api.github.com/users/basiliscus79/gists{/gist_id}","starred_url":"https://api.github.com/users/basiliscus79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basiliscus79/subscriptions","organizations_url":"https://api.github.com/users/basiliscus79/orgs","repos_url":"https://api.github.com/users/basiliscus79/repos","events_url":"https://api.github.com/users/basiliscus79/events{/privacy}","received_events_url":"https://api.github.com/users/basiliscus79/received_events","type":"User","site_admin":false},"created_at":"2017-07-03T15:51:35Z","updated_at":"2017-07-03T15:51:35Z","body":"Please try to run the file <i>ggSignif_MS_code.R</i> after loading the associated <i>.RData</i>\r\n\r\n[ggSignif_MS_code.zip](https://github.com/const-ae/ggsignif/files/1120026/ggSignif_MS_code.zip)\r\n\r\nPlease note that the uploaded code is ready to produce a custom significance annotation plot and, in order for it to work, you SHOULD NOT LOAD the ggsignif library but rather source the <i>stat_signif_modified.R</i> (as specified in the script).\r\nVice versa, if you would like to test it using the regular ggsignif package, the custom annotation layer must be commented and the ggsignif layer for automatic stats must be un-commented as well. This should be clearly visible in the script itself.\r\n\r\nLet me know if it works for you\r\nI apologize for any issues there might be, I am new to Github and this is my very first thread.\r\n\r\nBest\r\n\r\nMichele"}}
{"actor":{"display_login":"basiliscus79"}}