我希望在shinyUI中创建一个大小可变的图表。
以下是我的代码:
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")
)
}
我只是设置了“15cm”来查看这个图。
我尝试过不同的方法将滑块输入数据传递给绘图输出。我尝试使用“input.height”、“input$heigt”,但都没有成功。
imageOutput
吗? - Stéphane Laurent