December 2017
Beginner to intermediate
470 pages
12h 29m
English
To show a section for graphs and a separate one for data tables, we will use the tabsPanel() function in conjunction with the tabPanel() function. The tabsPanel() function receives and arranges one or more tablePanel() function calls, where each of them receives the name for a tab and its actual content:
ui <- fluidPage(
titlePanel("Cryptocurrency Markets"),
sidebarLayout(
sidebarPanel("Options"),
mainPanel(
tabsetPanel(
tabPanel("Simple Moving Averages", "Content 1"),
tabPanel("Data Overview", "Content 2")
)
)
)
)
Since we created two tabs with the titles, Simple Moving Averages and Data Overview, respectively, that's what we see as the tab names. If you are running the application yourself at this point, ...