ui.R
shinyUI(fluidPage( titlePanel("Check how distribution of random number changes for values > than 30"), sidebarLayout( sidebarPanel( numericInput("numeric", "How Many Random Numbers Should be Plotted (between 1 and 50000)", value = 30, min = 1, max = 50000, step = 1), sliderInput("sliderX", "choose the minimum and maximum standardised values", -3, 3, value = c(-2, 2)) ), mainPanel( h3("histogram of your selection"), plotOutput("histogram") ) ) )) ### server.R library(shiny) shinyServer(function(input, output) { output\(histogram <- renderPlot({ set.seed(5000) number_of_points <- input\)numeric minX <- input\(sliderX[1] maxX <- input\)sliderX[2] dataX <- runif(number_of_points, minX, maxX) hist(dataX, xlim = c(-3, 3)) }) })