File size: 1,352 Bytes
b27d0ee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
library(shiny)

shinyUI(fluidPage(
  
  # Application title
  titlePanel("Distribuci贸n Cauchy"),
  
  sidebarLayout(
    sidebarPanel(
      p("Modifique los par谩metros y 
        observe lo que sucede con la densidad."),
      br(),
      numericInput(inputId = "mu",
                  label = HTML("Ingrese el valor de μ:"),
                  min = -10,
                  value = 0,
                  step= 0.1),
      sliderInput(inputId = "sigma",
                  label = HTML("Ingrese el valor de σ:"),
                  min = 0.01,
                  max = 10,
                  value = 1,
                  step= 0.01, animate = TRUE),
      tags$br(),
      sliderInput(inputId = "x.max",
                  label = "Ingrese el m谩ximo valor de x para mostrar
                  alrededoral par谩metro de localizaci贸n:",
                  min = 0.01,
                  max = 100,
                  value = 5,
                  step = 0.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 Cauchy", align = "center"),
      plotOutput("grafico1"),
      verbatimTextOutput('med_var')
    )
  )
))