Created
March 11, 2018 11:46
-
-
Save aagarw30/bdb2f75ebe2589889957d21e40de8869 to your computer and use it in GitHub Desktop.
2. shinydashboard package - example app - demo sidebarMenu(), menuItem() - add menu items to shinydashboard sidebar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(shinydashboard) | |
shinyServer(function(input, output, session){ | |
} | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Intro shinydashboard package | |
## shinydashboard Basic Layout | |
library(shiny) | |
# install.packages("shinydashboard") | |
library(shinydashboard) | |
shinyUI( | |
dashboardPage( | |
dashboardHeader(title = "Demo shinydashboard package - an example", titleWidth = 600), | |
dashboardSidebar( | |
sidebarMenu( | |
menuItem(text = "About", tabName = "about", icon=icon("clipboard")), | |
menuItem("Data", tabName = "data", icon=icon("database")), | |
menuItem("Download", icon = icon("download")), | |
menuItem("Link to code files", href = "https://www.google.com", icon=icon("code")) | |
# https://fontawesome.com/icons?d=gallery | |
) | |
), | |
dashboardBody() | |
) | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment