I am using shiny dashboard for making an app. What I want is that when you run this app then plot size will adjust automatically according to windows size .I have tried this code for automatically adjust height and weight of a plot according to windows size..
Problem :
The width of the plot is changing its size according to the app window size by using following code but the height isn't ?
sidebar <- dashboardSidebar(
sidebarMenu(menuItem("plot",tabName = "plot"),
menuItem("Plot1",tabName = "Plot1"),
)
body <- dashboardBody(
tabitems(
tabItem(tabName = "plot",
box( width = "100%" , height = "100%", solidHeader = FALSE, status = "primary",
plotOutput("plot"))
)
tabItem(tabName = "plot1",
box( width = "100%" , height = "100%", solidHeader = FALSE, status = "primary",
plotOutput("plot1")))