{"action":"created","issue":{"url":"https://api.github.com/repos/ropensci/magick/issues/117","repository_url":"https://api.github.com/repos/ropensci/magick","labels_url":"https://api.github.com/repos/ropensci/magick/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/ropensci/magick/issues/117/comments","events_url":"https://api.github.com/repos/ropensci/magick/issues/117/events","html_url":"https://github.com/ropensci/magick/issues/117","id":304094836,"number":117,"title":"Long form rasters","user":{"login":"jeroen","id":216319,"avatar_url":"https://avatars3.githubusercontent.com/u/216319?v=4","gravatar_id":"","url":"https://api.github.com/users/jeroen","html_url":"https://github.com/jeroen","followers_url":"https://api.github.com/users/jeroen/followers","following_url":"https://api.github.com/users/jeroen/following{/other_user}","gists_url":"https://api.github.com/users/jeroen/gists{/gist_id}","starred_url":"https://api.github.com/users/jeroen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeroen/subscriptions","organizations_url":"https://api.github.com/users/jeroen/orgs","repos_url":"https://api.github.com/users/jeroen/repos","events_url":"https://api.github.com/users/jeroen/events{/privacy}","received_events_url":"https://api.github.com/users/jeroen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-10T18:55:09Z","updated_at":"2018-03-10T21:46:42Z","closed_at":null,"author_association":"COLLABORATOR","body":"@thomasp85 uses `lime:::tidy_raster` to get rasters in long form for plotting them with ggplot2:\r\n\r\n```r\r\ntidy_raster <- function(im) {\r\n  raster <- as.raster(im)\r\n  data.frame(x = rep(seq_len(ncol(raster)), nrow(raster)),\r\n             y = rep(seq_len(nrow(raster)), each = ncol(raster)),\r\n             colour = as.vector(raster),\r\n             stringsAsFactors = FALSE)\r\n}\r\n```\r\n\r\nThis seems useful. Perhaps we can implement an optimized version of this in magick. "},"comment":{"url":"https://api.github.com/repos/ropensci/magick/issues/comments/372069699","html_url":"https://github.com/ropensci/magick/issues/117#issuecomment-372069699","issue_url":"https://api.github.com/repos/ropensci/magick/issues/117","id":372069699,"user":{"login":"thomasp85","id":1775316,"avatar_url":"https://avatars3.githubusercontent.com/u/1775316?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasp85","html_url":"https://github.com/thomasp85","followers_url":"https://api.github.com/users/thomasp85/followers","following_url":"https://api.github.com/users/thomasp85/following{/other_user}","gists_url":"https://api.github.com/users/thomasp85/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasp85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasp85/subscriptions","organizations_url":"https://api.github.com/users/thomasp85/orgs","repos_url":"https://api.github.com/users/thomasp85/repos","events_url":"https://api.github.com/users/thomasp85/events{/privacy}","received_events_url":"https://api.github.com/users/thomasp85/received_events","type":"User","site_admin":false},"created_at":"2018-03-10T21:46:42Z","updated_at":"2018-03-10T21:46:42Z","author_association":"NONE","body":"Doesn’t really fit well with the grammar as a geom should work with tidy data. You could provide a fortify method (basically this would be image_raster) and/or an annotate_magick function"}}
{"actor":{"display_login":"thomasp85"}}