{"action":"created","issue":{"url":"https://api.github.com/repos/igraph/rigraph/issues/81","labels_url":"https://api.github.com/repos/igraph/rigraph/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/igraph/rigraph/issues/81/comments","events_url":"https://api.github.com/repos/igraph/rigraph/issues/81/events","html_url":"https://github.com/igraph/rigraph/pull/81","id":84599052,"number":81,"title":"R: fix bug plotting named graphs with marked groups","user":{"login":"aaronwolen","id":1067915,"avatar_url":"https://avatars.githubusercontent.com/u/1067915?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronwolen","html_url":"https://github.com/aaronwolen","followers_url":"https://api.github.com/users/aaronwolen/followers","following_url":"https://api.github.com/users/aaronwolen/following{/other_user}","gists_url":"https://api.github.com/users/aaronwolen/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronwolen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronwolen/subscriptions","organizations_url":"https://api.github.com/users/aaronwolen/orgs","repos_url":"https://api.github.com/users/aaronwolen/repos","events_url":"https://api.github.com/users/aaronwolen/events{/privacy}","received_events_url":"https://api.github.com/users/aaronwolen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-03T14:41:00Z","updated_at":"2015-07-14T17:54:03Z","closed_at":"2015-07-14T17:54:03Z","pull_request":{"url":"https://api.github.com/repos/igraph/rigraph/pulls/81","html_url":"https://github.com/igraph/rigraph/pull/81","diff_url":"https://github.com/igraph/rigraph/pull/81.diff","patch_url":"https://github.com/igraph/rigraph/pull/81.patch"},"body":"Plotting marked groups works fine with unnamed graphs:\r\n\r\n```r\r\nkarate <- graph.famous(\"Zachary\")\r\nplot.igraph(karate, mark.groups = list(grp = c(33, 34)))\r\n```\r\n![Plot marked groups in unnamed graph](https://cloud.githubusercontent.com/assets/1067915/7962688/c587a9f0-09dc-11e5-9b8d-3870e59935f9.png)\r\n\r\nBut fails with named graphs:\r\n\r\n```r\r\nV(karate)$name <- paste0(\"v\", 1:vcount(karate))\r\nplot.igraph(karate, mark.groups = list(grp = c(\"v33\", \"v34\")))\r\n```\r\n\r\n```\r\n## Error in layout[v, , drop = FALSE] : no 'dimnames' attribute for array\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/igraph/rigraph/issues/comments/121322631","html_url":"https://github.com/igraph/rigraph/pull/81#issuecomment-121322631","issue_url":"https://api.github.com/repos/igraph/rigraph/issues/81","id":121322631,"user":{"login":"gaborcsardi","id":660288,"avatar_url":"https://avatars.githubusercontent.com/u/660288?v=3","gravatar_id":"","url":"https://api.github.com/users/gaborcsardi","html_url":"https://github.com/gaborcsardi","followers_url":"https://api.github.com/users/gaborcsardi/followers","following_url":"https://api.github.com/users/gaborcsardi/following{/other_user}","gists_url":"https://api.github.com/users/gaborcsardi/gists{/gist_id}","starred_url":"https://api.github.com/users/gaborcsardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaborcsardi/subscriptions","organizations_url":"https://api.github.com/users/gaborcsardi/orgs","repos_url":"https://api.github.com/users/gaborcsardi/repos","events_url":"https://api.github.com/users/gaborcsardi/events{/privacy}","received_events_url":"https://api.github.com/users/gaborcsardi/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T17:54:03Z","updated_at":"2015-07-14T17:54:03Z","body":"This seems to work with the latest version of igraph, so I am closing this."}}