inst/apps/cdf_demo/ui.R

ui = navbarPage(title = 'Distribution Function',
                collapsible = T, 
                position = 'fixed-top',
                theme  = add_theme(getShinyOption('theme')),
                header = add_css(),
                footer = (),

tabPanel('Properties',
         uiOutput('cdfdemo', class = 'ta-text')),

tabPanel('Computing Values in R',
         uiOutput('cdfr', class = 'ta-text')),
                                
tabPanel('Shiny App',
  sidebarLayout( 
    sidebarPanel(width = 5,
      shinyAce::aceEditor(fontSize = 16, 
                          wordWrap = T,
                          outputId = "cdfplot", 
                          mode = "r", 
                          theme = "github", 
                          value = 
"par(family = 'serif',mar = c(4,6,2,1))

curve(
pweibull(x,shape = 1.7, scale = 1),
xlab = 'Time, t',
ylab = expression(F(t)[Weibull]),
ylim = c(0,1),
xlim = c(0,3),
lwd = 3,
lty = 1,
col = 2,
cex.lab = 1.5,
cex.axis = 1.5,
las = 1)"),

      actionButton("evalcdf", "Evaluate")),
        
    mainPanel(plotOutput("plotcdf"), width = 7))))
Auburngrads/teachingApps documentation built on June 17, 2020, 4:57 a.m.