{"action":"created","issue":{"url":"https://api.github.com/repos/tdhock/animint/issues/96","labels_url":"https://api.github.com/repos/tdhock/animint/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/tdhock/animint/issues/96/comments","events_url":"https://api.github.com/repos/tdhock/animint/issues/96/events","html_url":"https://github.com/tdhock/animint/pull/96","id":93602248,"number":96,"title":"Selector widgets","user":{"login":"kferris10","id":6612411,"avatar_url":"https://avatars.githubusercontent.com/u/6612411?v=3","gravatar_id":"","url":"https://api.github.com/users/kferris10","html_url":"https://github.com/kferris10","followers_url":"https://api.github.com/users/kferris10/followers","following_url":"https://api.github.com/users/kferris10/following{/other_user}","gists_url":"https://api.github.com/users/kferris10/gists{/gist_id}","starred_url":"https://api.github.com/users/kferris10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kferris10/subscriptions","organizations_url":"https://api.github.com/users/kferris10/orgs","repos_url":"https://api.github.com/users/kferris10/repos","events_url":"https://api.github.com/users/kferris10/events{/privacy}","received_events_url":"https://api.github.com/users/kferris10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-07-07T18:51:08Z","updated_at":"2015-08-31T17:13:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tdhock/animint/pulls/96","html_url":"https://github.com/tdhock/animint/pull/96","diff_url":"https://github.com/tdhock/animint/pull/96.diff","patch_url":"https://github.com/tdhock/animint/pull/96.patch"},"body":"Here's a start to creating a widget for each selector variable.  It's a work in progress as it only works for this one example, but  I wanted to show you guys where I'm currently at.\r\n\r\n```\r\np1 <- ggplot() +\r\n  geom_point(aes(Sepal.Length, Sepal.Width, clickSelects = Species),\r\n             data = iris) +\r\n  ggtitle(\"Sepal Data\")\r\np2 <- ggplot() +\r\n  geom_point(aes(Petal.Length, Petal.Width, colour = Species, \r\n                 showSelected = Species), data = iris) +\r\n  ggtitle(\"Petal Data\")\r\n\r\nviz <- list(sepal = p1, petal = p2)\r\nanimint2dir(viz)\r\n```\r\n\r\nIt also works with multiple selection\r\n\r\n```\r\nviz <- list(sepal = p1, petal = p2, \r\n            selector.types = list(Species = \"multiple\"))\r\nanimint2dir(viz)\r\n```\r\n\r\n[Live example](http://bl.ocks.org/kferris10/raw/47986dcff139b89d6ef7/)"},"comment":{"url":"https://api.github.com/repos/tdhock/animint/issues/comments/136432007","html_url":"https://github.com/tdhock/animint/pull/96#issuecomment-136432007","issue_url":"https://api.github.com/repos/tdhock/animint/issues/96","id":136432007,"user":{"login":"tdhock","id":932850,"avatar_url":"https://avatars.githubusercontent.com/u/932850?v=3","gravatar_id":"","url":"https://api.github.com/users/tdhock","html_url":"https://github.com/tdhock","followers_url":"https://api.github.com/users/tdhock/followers","following_url":"https://api.github.com/users/tdhock/following{/other_user}","gists_url":"https://api.github.com/users/tdhock/gists{/gist_id}","starred_url":"https://api.github.com/users/tdhock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdhock/subscriptions","organizations_url":"https://api.github.com/users/tdhock/orgs","repos_url":"https://api.github.com/users/tdhock/repos","events_url":"https://api.github.com/users/tdhock/events{/privacy}","received_events_url":"https://api.github.com/users/tdhock/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T17:13:17Z","updated_at":"2015-08-31T17:13:17Z","body":"Hey @kferris10 this selector widget functionality looks like it is working exactly as I imagined it, on the WorldBank data viz that I looked at. Great job! Anything else to do before merging with master?"}}