I have two graphs, which I plot together via grid.arrange() then I decide to add a Table with descriptive statistics to the same Panel. However, this table is plotted on the graph, how can I fix this issue and set the table's location whatever the place I want?
how the output looks:
My code:
ui <- fluidPage(
# Application title
titlePanel("Day-ahead prices"),
# Sidebar with slider input to select date range
sidebarLayout(
sidebarPanel(
selectInput("Region_selector",
"Area:",
c("SYS","SE1","SE2","SE3","SE4","FI", "DK1","DK2","Oslo","Kr.sand","Bergen","Molde","Tr.heim", "Troms","EE", "LV", "LT", "AT","BE", "DE-LU","FR", "NL")),
# Add a Slider Input to select date range
#sliderInput
dateRangeInput("Date_range_selector", "Select Date Range",
start = as.Date("2016-01-01","%Y-%m-%d"),
end = as.Date("2020-12-01","%Y-%m-%d"),
#min = as.Date("2020-10-01","%Y-%m-%d"),
#max = as.Date("2020-12-01","%Y-%m-%d"),
#value=c(as.Date(Sys.Date()-14),as.Date(Sys.Date())),
#format ="%Y-%m-%d"
),
radioButtons("dist", "Hourly_data:",
c("Daily" = "Daily",
"Hourly" = "Hourly"))
),
# plot graphs
mainPanel(tabsetPanel(
tabPanel("Plot",
h3(helpText("Nordpool prices")),
plotOutput("plot"),
h3(helpText("Descr.statistics")),
verbatimTextOutput("shap")) ,
tabPanel("Stat",verbatimTextOutput("shap2"))
)
)
))