inst/apps/distribution_poisson_functions/ui.R

ui = fluidPage(theme = add_theme(getShinyOption('theme')), 
               add_css(),
               
sidebarLayout(
  sidebarPanel(width = 3, 
hr(), 
sliderInput("range.pois", 
            label = "Range",
            min = 0, 
            max = 50, 
            step = 1,
            value = c(0,10)),
hr(), 
sliderInput("lamb.pois", 
            label = "Lambda",
            min = .5, 
            max = 10, 
            step=.5, 
            value = .5,
            animate=TRUE)), 

mainPanel(width = 9, 
          tabsetPanel(type = "pills", 
          tabPanel("Distribution Function", 
                   metricsgraphicsOutput(height = "550px", "poisC")), 
          tabPanel("Mass",
                   metricsgraphicsOutput(height = "550px", "poisP")), 
          tabPanel("Survival", 
                   metricsgraphicsOutput(height = "550px", "poisR")), 
          tabPanel("Hazard", 
                   metricsgraphicsOutput(height = "550px", "poish")), 
          tabPanel("Cumulative Hazard", 
                   metricsgraphicsOutput(height = "550px", "poisH")),
          tabPanel("Quantile", 
                   metricsgraphicsOutput(height = "550px", "poisQ"))))))

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.