inst/shiny/ui.R

library(shiny)
library(ggplot2)

dataset <- diamonds

shinyUI(pageWithSidebar(
  
  headerPanel("Explore SAPA's data!"),
  sidebarPanel(
    
    selectInput('x', 'Trait or Ability', names(dataset)),
    selectInput('y', 'Grouping Variable', names(dataset), names(dataset)[[2]]),
    helpText("Built by Jason A. French and Francis Smart."),
  ),
  
  mainPanel(
    plotOutput('plot')
  )
))
frenchja/SAPATools documentation built on May 16, 2019, 2:47 p.m.