关于在r Shiny UI中格式化图形位置的快速问题。
到目前为止,我已经在Server.R中制作了一系列直方图,它们在UI中都显示得很完美。唯一的问题是,我希望它们排成2行,每行4个。我的当前代码如下所示,但它给了我3行!顶部有4个图形,第二个有3个图形(还有空间可以容纳第四个),然后最后一行有1个图形...我哪里出错了,是否有更好的方法来布置Shiny中的8个图形?
fluidRow(
column(12,
"",
fluidRow(
column(3,
plotOutput("PlotHy")#,
),
column(width = 3,
plotOutput("PlotMe")),
column(width = 3,
plotOutput("PlotEthane")),
column(width = 3,
plotOutput("PlotEthylene")),
column(width = 3,
plotOutput("PlotCO")),
column(width = 3,
plotOutput("PlotCO2")),
column(width = 3,
plotOutput("PlotO")),
column(width = 3,
plotOutput("PlotN"))
)
)
),
感谢,詹姆斯。