Skip to content

Instantly share code, notes, and snippets.

@ckholmes5
Created August 4, 2016 15:28
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 ckholmes5/0fcd113bf6a3aa8544ad9b8f323ee6d3 to your computer and use it in GitHub Desktop.
Save ckholmes5/0fcd113bf6a3aa8544ad9b8f323ee6d3 to your computer and use it in GitHub Desktop.
tabPanel("Year Over Year",
sidebarLayout(
sidebarPanel(h3("Yearly Fatality Rate"), style = "width:300px",
helpText("This graph displays the yearly changes in driving fatalities. You can customize this graph by viewing subsets of the total deaths related to drunk driving, distracted driving, or speeding."),
br(),
radioButtons("lineG", h4("Filters"), choices =
list("Total" = 'total', "Drunk" = 'drunk', "Distracted" = 'distract', "Speeding" = 'speeding'), selected = "Total"),
br(),
sliderInput("lineRange", h4("Years of Interest:"), sep = "",
min = 1999, max = 2014, value = c(1999, 2014))
),
mainPanel(style="position:relative",
h3("Driving Fatalities", style="margin:20px; margin-left:200px; z-index:100; position:absolute"),
br(),
br(),
plotlyOutput("trendPlot"),
htmlOutput("plotP", style="margin-left:-100px; margin-top:-80px")
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment