2026-04-25

Description of the App

This app takes a number from a given slider between 1 and 1000000 and gives a histogram of binomial distribution of that number of observations given in input. The binomial distribtuion has a default size of 20,000 and probability of 0.5

UI and SERVER codes

The UI has a side panel with a slider between numbers 1 and 1,000,000 and takes the input value from there

The server calculates the input value (suppose say 500) and evaluates the function as follows

result <- rbinom(500, size = 20000, prob = 0.5)

Histogram plotting

hist(result, col = 'darkgray', border = 'white',
             xlab = 'x',
             main = 'Histogram')

Github repository of the app files along with the shinyapps link to app