2023-03-06

Introduction

This is the final assignment for the Coursera course “Developing Data Products”. The aim of this course project is to build and demonstrate my knowledge of Shiny by building an app. I have created an app that shows four histograms, each illustrating the mean width and length of the petals and sepals of three species of iris.

Background

This application is written in Shiny, a web application framework for R. The source code consists of two files: server.R and ui.R, whereby the former includes the backend of a Shiny web application- and the latter the user-interface elements.

The Iris Dataset

I used R’s in-built “Iris” data set which contains various measurments for 50 flowers belonging to the species “iris setosa”, “iris versicolor” and “iris virginica”.

# let us take a look at the data 
head(iris,5)
##   Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 1          5.1         3.5          1.4         0.2  setosa
## 2          4.9         3.0          1.4         0.2  setosa
## 3          4.7         3.2          1.3         0.2  setosa
## 4          4.6         3.1          1.5         0.2  setosa
## 5          5.0         3.6          1.4         0.2  setosa
# let us look at the variables that we will plot in the app
names(iris)
## [1] "Sepal.Length" "Sepal.Width"  "Petal.Length" "Petal.Width"  "Species"

The App