Skip to content
Snippets Groups Projects
Commit b4b15105 authored by Tom Rushby's avatar Tom Rushby
Browse files

Initial commit shiny dashboard example (weather app)

parent 555fad1c
Branches
Tags
No related merge requests found
library(shiny)
library(shinydashboard)
# https://stackoverflow.com/questions/46307497/embed-weather-iframe-into-shiny-dashboard
# https://www.mapcoordinates.net/en
ui <- dashboardPage(
dashboardHeader(title = "Dashboard"),
dashboardSidebar(
sidebarMenu(
menuItem("Dashboard",
tabName = "dashboard",
icon = icon("dashboard")
)
)
),
dashboardBody(
tabItems(
tabItem(
tabName = "dashboard",
fluidRow(
tags$iframe(
seamless = "seamless",
src = "https://forecast.io/embed/#lat=50.9373&lon=-1.4041&name=University of Southampton",
height = 800, width = 1400
)
)
)
)
)
)
server <- function(input, output) {}
shinyApp(ui, server)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment