inst/apps/distribution_loglogistic_functions/ui.R

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

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

mainPanel(width = 9,
 tabsetPanel(type = 'pills',
  tabPanel('Distribution Function',  
           metricsgraphicsOutput(height = "550px","llogC")),
  tabPanel('Density',
           metricsgraphicsOutput(height = "550px", "llogP")),
  tabPanel('Survival',
           metricsgraphicsOutput(height = "550px", "llogR")),
  tabPanel('Hazard',
           metricsgraphicsOutput(height = "550px", "llogh")),
  tabPanel('Cumulative Hazard',
           metricsgraphicsOutput(height = "550px", "llogH")),
  tabPanel('Quantile',
           metricsgraphicsOutput(height = "550px", "llogQ"))))))

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.