I am currently designing a Shiny App with the package shinydashboard.
I am using a tabsetPanel layout and I cannot change the width of each tabPanel so that the plot fits the entire window width. The value put in the argument width = seems to have no influence on it.
I already tried all the solutions given in the question : Shiny: How to adjust the width of the tabsetPanel?, but none of these worked for me.
Here is my code :
library(shiny)
library(shinydashboard)
header<-dashboardHeader(title="Shiny App")
sidebar<-dashboardSidebar()
body<-dashboardBody(
fluidRow(
mainPanel(
tabsetPanel(
tabPanel("Panel1",
box(plotOutput("plot"),height=420,width = 1400)
)
)
)
)
)
ui<-dashboardPage(header,sidebar,body)
server<-function(input,output) {
output$plot<-renderPlot({plot(1)})
}
shinyApp(ui,server)
Whatever the value of the width, I have got this size of tabPanel. I cannot figure out how to change it.
Could you help me? Thanks!
