{"action":"opened","issue":{"url":"https://api.github.com/repos/clauswilke/multiscales/issues/2","repository_url":"https://api.github.com/repos/clauswilke/multiscales","labels_url":"https://api.github.com/repos/clauswilke/multiscales/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/clauswilke/multiscales/issues/2/comments","events_url":"https://api.github.com/repos/clauswilke/multiscales/issues/2/events","html_url":"https://github.com/clauswilke/multiscales/issues/2","id":376347634,"node_id":"MDU6SXNzdWUzNzYzNDc2MzQ=","number":2,"title":"non-finite location and/or size for viewport when using 'colour'","user":{"login":"adrfantini","id":12826141,"node_id":"MDQ6VXNlcjEyODI2MTQx","avatar_url":"https://avatars1.githubusercontent.com/u/12826141?v=4","gravatar_id":"","url":"https://api.github.com/users/adrfantini","html_url":"https://github.com/adrfantini","followers_url":"https://api.github.com/users/adrfantini/followers","following_url":"https://api.github.com/users/adrfantini/following{/other_user}","gists_url":"https://api.github.com/users/adrfantini/gists{/gist_id}","starred_url":"https://api.github.com/users/adrfantini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrfantini/subscriptions","organizations_url":"https://api.github.com/users/adrfantini/orgs","repos_url":"https://api.github.com/users/adrfantini/repos","events_url":"https://api.github.com/users/adrfantini/events{/privacy}","received_events_url":"https://api.github.com/users/adrfantini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-01T11:05:43Z","updated_at":"2018-11-01T11:05:43Z","closed_at":null,"author_association":"NONE","body":"Hi and thanks for the interesting package. I see lots of potential in it.\r\n\r\nI'm getting the error in the title. This problem is not connected to the one in  #1, but I'll use the same data to illustrate it. Use [this](https://drive.google.com/open?id=13KYuqtsUpVV8vVEqsfEh5sR5hkXzDaFg) file to reproduce (2.3MB).\r\n\r\nNote that when using `color` instead of `colour`, it does not give this error (but gives the error of #1).\r\n\r\n```R\r\nlibrary(ggplot2)\r\nlibrary(multiscales)\r\nlibrary(sf)\r\nlibrary(dplyr)\r\n\r\ntrends = st_read('plot_POT_EWA.gpkg')\r\n# Lets subset for faster testing\r\na = trends %>% filter(RP == 1.5) %>% slice(1:100)\r\n\r\nggplot(a, aes(colour = zip(trend, R2), geometry=geom)) +\r\n        bivariate_scale(\"colour\",\r\n            pal_vsup(values = rep(c('red', 'blue'), 4)),\r\n            guide = \"colourfan\"\r\n        ) +\r\n        geom_sf(data = a, size=2) +\r\n        theme(\r\n            legend.key.size = grid::unit(0.8, \"cm\"),\r\n            legend.title.align = 0.5,\r\n            plot.margin = margin(5.5, 20, 5.5, 5.5)\r\n        )\r\n```\r\nResult:\r\n```\r\nError in grid.Call.graphics(C_setviewport, vp, TRUE) : \r\n  non-finite location and/or size for viewport\r\n```"}}
{"actor":{"display_login":"adrfantini"}}