- This shiny app was built to allow users to predict the petal length based on the sepal length
- It uses the iris dataset
- It has a few user inputs
- The data and model are shown in a plot
- The output is displayed as text
27/08/2020
model1 <- lm(Petal.Length ~ Sepal.Length, data = iris)
plot(iris$Sepal.Length, iris$Petal.Length, xlab = "Sepal length",
ylab = "Petal length", bty = "n", pch = 16, col = iris$Species)
abline(model1, col = "red", lwd = 2)
legend(7,4.3,unique(iris$Species),col=1:length(iris$Species),pch=16)