{"action":"created","issue":{"url":"https://api.github.com/repos/wilkelab/cowplot/issues/19","labels_url":"https://api.github.com/repos/wilkelab/cowplot/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/wilkelab/cowplot/issues/19/comments","events_url":"https://api.github.com/repos/wilkelab/cowplot/issues/19/events","html_url":"https://github.com/wilkelab/cowplot/issues/19","id":121872654,"number":19,"title":"Add an plot_label option to plot_grid()","user":{"login":"ustervbo","id":10633028,"avatar_url":"https://avatars.githubusercontent.com/u/10633028?v=3","gravatar_id":"","url":"https://api.github.com/users/ustervbo","html_url":"https://github.com/ustervbo","followers_url":"https://api.github.com/users/ustervbo/followers","following_url":"https://api.github.com/users/ustervbo/following{/other_user}","gists_url":"https://api.github.com/users/ustervbo/gists{/gist_id}","starred_url":"https://api.github.com/users/ustervbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ustervbo/subscriptions","organizations_url":"https://api.github.com/users/ustervbo/orgs","repos_url":"https://api.github.com/users/ustervbo/repos","events_url":"https://api.github.com/users/ustervbo/events{/privacy}","received_events_url":"https://api.github.com/users/ustervbo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-12T19:13:28Z","updated_at":"2015-12-13T01:09:50Z","closed_at":null,"body":"I personally prefer (and I believe some journals demand) that the figure number is printed on the figure. My reason is that  it creates less confusion when figures are bundled into one pdf or printed. It is possible to do this now but only by combinations of ggdraw(), draw_plot, and draw_label().\r\n\r\nI suggest that the argument `plot_label = NULL` is added to the plot_grid(), the addition to the function body could be\r\n\r\n```\r\nif(!isnull(plot_label)){\r\n  p <- p + draw_label(plot_label, 1, 0, hjust = 1, vjust = 0)\r\n}\r\n```\r\n\r\nThe x, y, hjust, and vjust could also be given as arguments to the function, but I think that would be too much."},"comment":{"url":"https://api.github.com/repos/wilkelab/cowplot/issues/comments/164207883","html_url":"https://github.com/wilkelab/cowplot/issues/19#issuecomment-164207883","issue_url":"https://api.github.com/repos/wilkelab/cowplot/issues/19","id":164207883,"user":{"login":"clauswilke","id":4210929,"avatar_url":"https://avatars.githubusercontent.com/u/4210929?v=3","gravatar_id":"","url":"https://api.github.com/users/clauswilke","html_url":"https://github.com/clauswilke","followers_url":"https://api.github.com/users/clauswilke/followers","following_url":"https://api.github.com/users/clauswilke/following{/other_user}","gists_url":"https://api.github.com/users/clauswilke/gists{/gist_id}","starred_url":"https://api.github.com/users/clauswilke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clauswilke/subscriptions","organizations_url":"https://api.github.com/users/clauswilke/orgs","repos_url":"https://api.github.com/users/clauswilke/repos","events_url":"https://api.github.com/users/clauswilke/events{/privacy}","received_events_url":"https://api.github.com/users/clauswilke/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T01:09:50Z","updated_at":"2015-12-13T01:09:50Z","body":"If I understand correctly, this would add one single label to the entire figure, not each graph in a plot grid, correct? In this case, it's functionality that doesn't belong into `plot_grid()`, since one might want such a  label also on an individual plot. I'll consider adding a convenience function that does this."}}