Last active
March 11, 2018 18:01
-
-
Save aagarw30/41c2276b28bb7f27949da315dd7375d0 to your computer and use it in GitHub Desktop.
2. R 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