我想让我的图并排坐在一起。我已经调整了一些图表的大小,调整了它们的大小,但我的目的是将它们并排放置。
下面是ui.r的代码
tabPanel("Scores scores",
tabsetPanel("tab",
tabPanel("Score Summary",
selectInput("Num","Select the variable",choices = c("Score scores"=14, "Customer experience score"= 20, "Business experience score" = 21, "Legal experience score" = 22)),
column(width= 12, p("This plot visualizes the number of Nos for each experience")),
sliderInput("bins","Select the BINS of the histgram",min=5, max= 15, value = 10),
plotOutput("myhist"),
selectInput("qt","Select the variable",choices = c("Question 1"=23)),
tableOutput("aud")),
tabPanel("Survey question",
plotOutput("aa",height=200,width=350),
plotOutput("ab",height=200,width=350),
plotOutput("ac",height=200,width=350),
plotOutput("ad",height=200,width=350),
plotOutput("ae"),
plotOutput("af"),
plotOutput("ag"),
plotOutput("ah"),
plotOutput("ai"),
plotOutput("aj"),
plotOutput("ak"),
plotOutput("al"),
plotOutput("am"),
plotOutput("an"),
plotOutput("ao")
)
))我的仪表板截图如下:
enter image description here
发布于 2016-05-14 19:13:34
您是否尝试过使用gridExtra包及其命令grid.arrange?有关详细信息,请参阅https://cran.r-project.org/web/packages/gridExtra/vignettes/arrangeGrob.html。在您的例子中,grid.arrange(gg1, gg2, gg3, ..., nrow=1)可能是最佳选择。
https://stackoverflow.com/questions/35250393
复制相似问题