ZAGA / ui.R
FreddyHernandez's picture
Upload 2 files
78e71c1
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Distribuci贸n Gamma aumentada con ceros"),
# Sidebar with a slider input for the number of bins
sidebarLayout(
sidebarPanel(
p("Zero Adjusted Gamma distribution (ZAGA)"),
br(),
p("Modifique los valores de los par谩metros y observe
lo que sucede con la densidad."),
br(),
numericInput(inputId = "mu",
label = HTML("Ingrese el valor de μ:"),
min = 0.1,
value = 0.7,
step= 0.1),
numericInput(inputId = "sigma",
label = HTML("Ingrese el valor de σ:"),
min = 0.1,
value = 0.3,
step= 0.1),
sliderInput(inputId = "nu",
label = HTML("Ingrese el valor de ν:"),
min = 0.01,
max = 0.99,
value = 0.2,
step = 0.01),
sliderInput(inputId = "x.max",
label = "Ingrese el m谩ximo valor de x para mostrar en el gr谩fico:",
min = 5,
max = 20,
value = 5,
step = 1),
br(),
p("App creada por el Semillero de R de la Universidad Nacional de Colombia:"),
tags$a(href="https://srunal.github.io/", "https://srunal.github.io/")
),
# Show a plot of the generated distribution
mainPanel(
h3("Densidad para la distribuci贸n ZAGA", align = "center"),
plotOutput("grafico1"),
verbatimTextOutput('github')
)
)
))