R Shiny: plot with dynamical size
问题 I wanna have a plot with dynamic size and all should happen in the shinyUI. Here is my code: shinyUI{ sidebarPanel( sliderInput("width", "Plot Width", min = 10, max = 20, value = 15), sliderInput("height", "Plot Height", min = 10, max = 20, value = 15) ) mainPanel( plotOutput("plot", width="15cm", height="15cm") ) } I set "15cm" only to see the plot. I tried different methods to take the data from the sliderInputs and bring it to the plotOutput. I tried "input.height", "input$heigt" but