inst/apps/maximum_likelihood_simulation/ui.R

ui = fluidPage(theme = add_theme(getShinyOption('theme')), 
               add_css(),
               
sidebarLayout(
  sidebarPanel(width = 4,
    selectInput('correct', 
                label = 'True Distribution', 
                choices = c('Green', 
                            'Blue', 
                            'Red'), 
                selected = 'Blue'),
    
    actionButton('mlesample','sample 1', width = '100%'),
    hr(),
    actionButton('mlesample10','sample 10', width = '100%'),
    hr(),
    actionButton('clear','clear', width = '100%')),
  
  mainPanel(plotOutput('plotmle', height = '650px'), width = 8)))

Try the teachingApps package in your browser

Any scripts or data that you put into this service are public.

teachingApps documentation built on July 1, 2020, 5:58 p.m.