Skip to content

Instantly share code, notes, and snippets.

@filipstachura
Created September 4, 2018 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipstachura/f5fa85bd7d6ebccf323fad2985724c7e to your computer and use it in GitHub Desktop.
Save filipstachura/f5fa85bd7d6ebccf323fad2985724c7e to your computer and use it in GitHub Desktop.
shiny.semantic & dygraphs demo
library(shiny)
library(shiny.semantic)
library(dygraphs)
runApp(shinyApp(
semanticPage(title = "Dygraphs demo",
uiheader("Hi from semantic!", "Plays nice together", icon = "heart"),
uisegment(
dygraphOutput("graph")
)),
shinyServer(function(input, output) {
output$graph <- renderDygraph(
dygraph(nhtemp, main = "New Haven Temperatures")
)
})
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment