inst/apps/distribution_lev_functions/ui.R

ui = fluidPage(theme = add_theme(getShinyOption('theme')), 
               add_css(),

sidebarLayout(
  sidebarPanel(width = 3, 
  hr(),
  sliderInput("range.lev", 
              label = "Range",
              min = -20, 
              max = 20, 
              value = c(-6,6)),
  hr(),
  sliderInput("mu.lev", 
              label = HTML("Mean (μ)"),
              min = -3, 
              max = 3, 
              step = 0.5, 
              value = 0, 
              animate = T),
  hr(),
  sliderInput("sig.lev", 
              label = HTML("Std Dev (σ)"),
              min = 1, 
              max = 10, 
              step = 0.5, 
              value = 1, 
              animate = T)),

mainPanel(width = 9,
 tabsetPanel(type = 'pills',
  tabPanel('Distribution Function',
           metricsgraphicsOutput('levC', height = '550px')),
  tabPanel('Density',
           metricsgraphicsOutput('levP', height = '550px')),
  tabPanel('Survival',
           metricsgraphicsOutput('levR', height = '550px')),
  tabPanel('Hazard',
           metricsgraphicsOutput('levh', height = '550px')),
  tabPanel('Cumulative Hazard',
           metricsgraphicsOutput('levH', height = '550px')),
  tabPanel('Quantile',
           metricsgraphicsOutput('levQ', height = '550px'))))))

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.