Distribution of Length and Width of Petal and Sepal based on IRIS Species

MOHAMMAD SHADAN
22-SEP-2016

Overview

Objective
This is a simple Shiney app which shows four Distribution Plots for Length and Width of Petals and Sepals after one of the IRIS Species is selected. The dataset used for this project is IRIS which is available in R.

About the IRIS Dataset
IRIS data set gives measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 50 flowers from each of three species of iris.

The species of Iris are :
1. setosa
2. versicolor
3. virginica

The Sepals are the lower, or outermost, part of the flower (often green and leaf-like)
The Petals is often the colored segments of the corolla of a flower

IRIS Data

Dimension

[1] 150   5

Top 10 Rows

  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
6          5.4         3.9          1.7         0.4  setosa

User Input and Output from app

Input
User must select one of the three Species from the drop down on left.

Output
The Output should show below four Distribution plots in a single frame :

  • Plot 1: Distribution of Sepal Length
  • Plot 2: Distribution of Sepal Width
  • Plot 3: Distribution of Petal Length
  • Plot 4: Disbribution of Petal Width

Each plot will show Mean Line in red and value of mean will appear in the heading of each graph.

Please refer next slide for how one of the three outputs will appear.

Output

plot of chunk unnamed-chunk-3