{"action":"opened","issue":{"url":"https://api.github.com/repos/duncantl/SVGAnnotation/issues/3","labels_url":"https://api.github.com/repos/duncantl/SVGAnnotation/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/duncantl/SVGAnnotation/issues/3/comments","events_url":"https://api.github.com/repos/duncantl/SVGAnnotation/issues/3/events","html_url":"https://github.com/duncantl/SVGAnnotation/issues/3","id":62717580,"number":3,"title":"addToolTips keeps running","user":{"login":"johnnyzhz","id":4248963,"avatar_url":"https://avatars.githubusercontent.com/u/4248963?v=3","gravatar_id":"","url":"https://api.github.com/users/johnnyzhz","html_url":"https://github.com/johnnyzhz","followers_url":"https://api.github.com/users/johnnyzhz/followers","following_url":"https://api.github.com/users/johnnyzhz/following{/other_user}","gists_url":"https://api.github.com/users/johnnyzhz/gists{/gist_id}","starred_url":"https://api.github.com/users/johnnyzhz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnnyzhz/subscriptions","organizations_url":"https://api.github.com/users/johnnyzhz/orgs","repos_url":"https://api.github.com/users/johnnyzhz/repos","events_url":"https://api.github.com/users/johnnyzhz/events{/privacy}","received_events_url":"https://api.github.com/users/johnnyzhz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-18T15:08:20Z","updated_at":"2015-03-18T15:08:20Z","closed_at":null,"body":"I am trying to add annotation to the points in a plot. But the code kept running forever. I'd appreciate if anyone can provide some insight on this. Thanks.\r\n```R\r\nsubcount<-sample(1:50,100,replace=T)\r\navgcount<-mean(subcount)\r\ndoc = svgPlot({\r\n        plot(1:100, subcount, ylab='count', main=\"Daily analysis in the past 100 days\")\r\n\t }\r\n\t )\r\n\t \r\nptz = getPlotPoints(doc)\r\n\r\ntips = paste(\"Count: \", subcount)\r\naddToolTips(ptz, tips, addArea = TRUE)\r\n\r\nsaveXML(doc, \"test.svg\")\r\n```\r\n\r\nThe following code run well.\r\n```R\r\nsubcount<-sample(1:50,100,replace=T)\r\navgcount<-mean(subcount)\r\ndoc = svgPlot({\r\n        plot(1:100, subcount, ylab='count', main=\"Daily analysis in the past 100 days\", type='h')\r\n\t\tpoints(1:100, subcount)\r\n\t\tabline(h=avgcount, lwd=2, col='red')\r\n\t }\r\n\t )\r\n\t \r\nptz = getPlotPoints(doc)\r\n\r\ntips = paste(\"Count: \", subcount)\r\naddToolTips(ptz, tips, addArea = TRUE)\r\n\r\nsaveXML(doc, \"test.svg\")\r\n```"}}