Question: Please provide the R code for the following question and discuss the results: The built in dataset iris has data on four floral measurements for
Please provide the R code for the following question and discuss the results:
The built in dataset iris has data on four floral measurements for three different species of iris. Make a pairs plot of the data. What relationships (correlations) look strongest? The grouping evident with the Species variable in the last plot should make you curious. Add the argument col=iris$Species to the last plot you made. Does this change your conclusions about correlations between any of the relationships? Can you make a lattice plot (xyplot()) showing Sepal.Length as a function of Sepal.Width for the different species?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
