{"action":"opened","issue":{"url":"https://api.github.com/repos/rstudio/shiny/issues/1090","labels_url":"https://api.github.com/repos/rstudio/shiny/issues/1090/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/shiny/issues/1090/comments","events_url":"https://api.github.com/repos/rstudio/shiny/issues/1090/events","html_url":"https://github.com/rstudio/shiny/issues/1090","id":129285468,"number":1090,"title":"Better DPI calibration","user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-27T22:06:39Z","updated_at":"2016-01-27T22:06:39Z","closed_at":null,"body":"```R\r\nlibrary(miniUI)\r\nlibrary(ggplot2)\r\nlibrary(grid)\r\n\r\niphone <- function(data, xvar, yvar) {\r\n  ui <- miniPage(\r\n    gadgetTitleBar(\"Put your iphone next to this line\"),\r\n    miniContentPanel(\r\n      plotOutput(\"plot\", height = \"100%\", brush = \"brush\")\r\n    )\r\n  )\r\n  \r\n  server <- function(input, output, session) {\r\n    output$plot <- renderPlot({\r\n      grid.newpage()\r\n      grid.segments(0.5, 0, 0.5, unit(5.44, \"inches\"))\r\n    })\r\n  }\r\n  \r\n  runGadget(ui, server)\r\n}\r\niphone()\r\n```"}}