{"action":"opened","issue":{"url":"https://api.github.com/repos/slowkow/ggrepel/issues/24","repository_url":"https://api.github.com/repos/slowkow/ggrepel","labels_url":"https://api.github.com/repos/slowkow/ggrepel/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/slowkow/ggrepel/issues/24/comments","events_url":"https://api.github.com/repos/slowkow/ggrepel/issues/24/events","html_url":"https://github.com/slowkow/ggrepel/issues/24","id":136808673,"number":24,"title":"Can you extract ggrepel coordinates?","user":{"login":"zachcp","id":1260667,"avatar_url":"https://avatars.githubusercontent.com/u/1260667?v=3","gravatar_id":"","url":"https://api.github.com/users/zachcp","html_url":"https://github.com/zachcp","followers_url":"https://api.github.com/users/zachcp/followers","following_url":"https://api.github.com/users/zachcp/following{/other_user}","gists_url":"https://api.github.com/users/zachcp/gists{/gist_id}","starred_url":"https://api.github.com/users/zachcp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachcp/subscriptions","organizations_url":"https://api.github.com/users/zachcp/orgs","repos_url":"https://api.github.com/users/zachcp/repos","events_url":"https://api.github.com/users/zachcp/events{/privacy}","received_events_url":"https://api.github.com/users/zachcp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-26T20:38:52Z","updated_at":"2016-02-26T20:38:52Z","closed_at":null,"body":"Hi @slowkow ,\r\n\r\nGreat package. I am wondering if there is a way to get back the pre-transformed coordinate locations for ggrepel text points. For example, once plotted, it is possible to obtain the ggplot values of there the points are but it would be very helpful/useful for hacking purposes to expose those values somehow.\r\n\r\nThis should give an idea of what I am hoping to achieve. I don't know if it is possible to get his data any other way besides plotting and pulling out the post-processed values.\r\n\r\n```r\r\nlibrary(ggrepel)\r\nlibrary(gtable)\r\n\r\ngg <- ggplot(mtcars, aes(wt, mpg)) +\r\n  geom_point(color = 'red') +\r\n  geom_text_repel(aes(label = rownames(mtcars))) \r\n\r\n#pull out the ggrepel grob bits \r\nbuilt <- ggplot_gtable(ggplot_build(gg))\t\t\r\nplotdata <- built$grobs[[4]]$children$geom_text_repel.textrepeltree.53$data\r\n\r\n# plot data will have the x and y values where ggrepel is plotted but they\r\n# are expressed as a range between 0 and 1.\r\n# can we get the values expressed in terms of the original data?\r\n\r\n```\r\n\r\nThanks,\r\n\r\nzach cp\r\n\r\n"}}