Spaces:
Sleeping
Sleeping
File size: 1,715 Bytes
09b933e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
library(shiny)
# Define UI for application that draws a histogram
shinyUI(fluidPage(
# Application title
titlePanel("Distribución Binomial Negativa - Versión 1"),
# Sidebar with a slider input for the number of bins
sidebarLayout(
sidebarPanel(
p("En esta parametrización el parámetro p representa
la probabilidad de éxito individual y k representa
el número de éxitos."),
br(),
p("Modifique los valores de los parámetros y
observe lo que sucede en el diagrama"),
br(),
sliderInput(inputId = "p",
label = "Probabilidad individual de éxito p:",
min = 0,
max = 1,
value = 0.6,
step= 0.1,
animate = TRUE),
sliderInput(inputId = "exitos",
label = "Número de éxitos k:",
min = 1,
max = 30,
value = 5,
step = 1,
animate = TRUE),
sliderInput(inputId = "x.max",
label = "Ingrese el máximo valor de x para el cual desea
ver las probabilidades:",
min = 1,
max = 70,
value = 15,
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("Diagrama de barras para las probabilidades", align = "center"),
plotOutput("grafico1"),
verbatimTextOutput('github')
)
)
))
|