An information timeline
1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## Only run this example in interactive R sessions
if (interactive()) {
library(shiny)
library(shinydashboard)
df <- data.frame(
date=c(Sys.Date()-1, Sys.Date()),
time=c(format(Sys.time(),'%H:%M'), format(Sys.time()-180,'%H:%M')),
header=c("V0.01", "V0.02"),
body=c("Start first version 0.01","version 0.02"),
footer=c("Footer", "Footer"))
server <- function(input, output) {
}
body <- dashboardBody(
timeline(df)
)
ui <- dashboardPage(
dashboardHeader(disable = TRUE),
dashboardSidebar(disable = TRUE),
body
)
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.