This app was created to predict the species of iris using four different measurements from the plant.
The following measurements can be selected on four separate sliders.
- Petal Length
- Petal Width
- Sepal Length
- Sepal Width
9/28/2020
This app was created to predict the species of iris using four different measurements from the plant.
The following measurements can be selected on four separate sliders.
The slider minimum and maximum values were found using the summary for the iris data.
summary(iris)
Sepal.Length Sepal.Width Petal.Length Petal.Width
Min. :4.300 Min. :2.000 Min. :1.000 Min. :0.100
1st Qu.:5.100 1st Qu.:2.800 1st Qu.:1.600 1st Qu.:0.300
Median :5.800 Median :3.000 Median :4.350 Median :1.300
Mean :5.843 Mean :3.057 Mean :3.758 Mean :1.199
3rd Qu.:6.400 3rd Qu.:3.300 3rd Qu.:5.100 3rd Qu.:1.800
Max. :7.900 Max. :4.400 Max. :6.900 Max. :2.500
Species
setosa :50
versicolor:50
virginica :50
The app produces a value that can be interpreted through instructions given in the output panel. Essentially, the confidence in the prediction is related in how close the numbers come to crossing over the different thresholds for each species.
Example: The value given is 1.8934.
As this number is within the range considered versicolor, the primary prediction would be versicolor; however, it might also be virginica based on how close it is to the threshold of 2.