Skip to content

Instantly share code, notes, and snippets.

View pahearn1's full-sized avatar

patrick ahearn pahearn1

View GitHub Profile
@pahearn1
pahearn1 / shiny_tree.r
Last active September 7, 2016 23:25
Shiny code creating a dynamic classification tree based on user selected variables using the PIMA dataset and dplyr
shinyApp(
ui=(fluidPage(
titlePanel(title=h4("Classification Tree",align="center")),
sidebarLayout(
sidebarPanel(
selectInput("attributes2",
label = "Attribute:",
choices = c("preg"=2,"plas"=3,"press"=4,"skin"=5,"ins"=6,"mass"=7,"pedi"=8,"age"=9),