Boxplot, Scatterplot, and Summary of User-Specified Random Numbers

Riley Visscher

2025-11-13

Introduction

This Shiny App can do a number of things for you.

  1. It will generate a series of random numbers, from the range you specify

  2. It will calculate the mean, minimum, maximum, 1st Quartile, and 3rd Quartile of those randomly generated numbers

  3. It will generate:

     1. the previously calculated summary
     2. a boxplot of that summary
     3. a scatterplot of those same numbers

Boxplot with Summary

The range of numbers for both the boxplot and the scatterplot must lie between 5 and 1,000.

The seed is set to ensure reproducibility.

set.seed(123)
n_sample <- sample(5:1000)
rand_data <- runif(n_sample, min = 5, max = 1000)
summary(rand_data)
##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##   8.518 245.992 501.249 505.554 755.350 999.526
boxplot(rand_data, main = "Boxplot of Random Numbers", col = "skyblue")

Scatterplot

The scatterplot is generated with the same series of random numbers as the summary and boxplot.

set.seed(123) 
plot(rand_data, 
     main = "Scatter Plot of Random Numbers", 
     xlab = "Index", 
     ylab = "Value", 
     pch = 19, 
     col = "darkorange")

Thank You!

The interactive Shiny App is available at: https://rileyvicoursera.shinyapps.io/course-project/