Richard A. Lent
17 September 2018 (an R-generated date)
This Shiny app draws three different types of univariate graphs (histogram, box plot, scatter plot) using R’s Iris dataset.
The Iris data are a famous multivariate dataset having to do with three species of flowers of the genus Iris. The data consist of 50 samples from each of three species of Iris (Iris setosa, Iris virginica and Iris versicolor). Four variables, the length and the width of the sepals and petals, in centimeters, were measured from each individual flower.
A specimen of Iris versicolor:
A sample of the data is as follows:
| Sepal.Length | Sepal.Width | Petal.Length | Petal.Width |
|---|---|---|---|
| 5.1 | 3.5 | 1.4 | 0.2 |
| 4.9 | 3.0 | 1.4 | 0.2 |
| 4.7 | 3.2 | 1.3 | 0.2 |
| 4.6 | 3.1 | 1.5 | 0.2 |
| 5.0 | 3.6 | 1.4 | 0.2 |
| 5.4 | 3.9 | 1.7 | 0.4 |
Select a variable and a graph type using the drop-down lists, then press the Draw graph button to draw the graph. You can select any combination of variable and graph type. Press the Draw graph button again to re-draw the graph after making different selections.
The direct URL for the app is: https://richardlent.shinyapps.io/ShinyApplicationAndReproduciblePitch/. Click the link to run the app full-size in your web browser.
The code files ui.R and server.R that comprise this app can be found on GitHub.