{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/shiny/issues/650","labels_url":"https://api.github.com/repos/rstudio/shiny/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/shiny/issues/650/comments","events_url":"https://api.github.com/repos/rstudio/shiny/issues/650/events","html_url":"https://github.com/rstudio/shiny/issues/650","id":48163603,"number":650,"title":"plotOutput height scalling issue","user":{"login":"jangorecki","id":3627377,"avatar_url":"https://avatars.githubusercontent.com/u/3627377?v=3","gravatar_id":"","url":"https://api.github.com/users/jangorecki","html_url":"https://github.com/jangorecki","followers_url":"https://api.github.com/users/jangorecki/followers","following_url":"https://api.github.com/users/jangorecki/following{/other_user}","gists_url":"https://api.github.com/users/jangorecki/gists{/gist_id}","starred_url":"https://api.github.com/users/jangorecki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jangorecki/subscriptions","organizations_url":"https://api.github.com/users/jangorecki/orgs","repos_url":"https://api.github.com/users/jangorecki/repos","events_url":"https://api.github.com/users/jangorecki/events{/privacy}","received_events_url":"https://api.github.com/users/jangorecki/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-08T11:42:13Z","updated_at":"2015-01-27T03:39:44Z","closed_at":"2014-11-10T19:52:49Z","body":"I'm currently not able to scale well my plot.\r\nDefault `height` in `plotOutput` is fixed to `400px` while I would expect to have `100%` there to keep the aspect ratio of my plot.\r\nYet I'm not able to provide `height=\"100%\"`, see below:\r\n```r\r\nrunApp(list(\r\n  ui =   fluidPage(\r\n    h1(\"plotOutput - WORKS\"),\r\n    plotOutput(\"Oplot_myplot\"),\r\n    h1(\"plotOutput height=600px - WORKS\"),\r\n    plotOutput(\"Oplot_myplot2\", height=\"600px\"),\r\n    h1(\"plotOutput height=100% - DOESN'T WORK\"),\r\n    plotOutput(\"Oplot_myplot3\", height=\"100%\")\r\n  ),\r\n  server = function(input, output, session) {\r\n    output$Oplot_myplot <- renderPlot(plot(1:100))\r\n    output$Oplot_myplot2 <- renderPlot(plot(1:100))\r\n    output$Oplot_myplot3 <- renderPlot(plot(1:100))\r\n  }\r\n))\r\n```\r\nThe `plotOutput(\"x\", height=\"100%\")` simply doesn't work.\r\n\r\nThe question is: how can I keep correct aspect ratio in my plot in shiny?\r\n\r\n```r\r\npackageVersion(\"shiny\")\r\n[1] ‘0.10.2.1’\r\n```"},"comment":{"url":"https://api.github.com/repos/rstudio/shiny/issues/comments/71584984","html_url":"https://github.com/rstudio/shiny/issues/650#issuecomment-71584984","issue_url":"https://api.github.com/repos/rstudio/shiny/issues/650","id":71584984,"user":{"login":"skparkes","id":5782892,"avatar_url":"https://avatars.githubusercontent.com/u/5782892?v=3","gravatar_id":"","url":"https://api.github.com/users/skparkes","html_url":"https://github.com/skparkes","followers_url":"https://api.github.com/users/skparkes/followers","following_url":"https://api.github.com/users/skparkes/following{/other_user}","gists_url":"https://api.github.com/users/skparkes/gists{/gist_id}","starred_url":"https://api.github.com/users/skparkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skparkes/subscriptions","organizations_url":"https://api.github.com/users/skparkes/orgs","repos_url":"https://api.github.com/users/skparkes/repos","events_url":"https://api.github.com/users/skparkes/events{/privacy}","received_events_url":"https://api.github.com/users/skparkes/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T03:39:44Z","updated_at":"2015-01-27T03:39:44Z","body":"This is not well documented anywhere else that I have found.  Please consider putting this either in the tutorial, or as an example in `plotOutput()` and/or `renderPlot()`."}}