Question: For problems 1 and 2 all work should be completed in R . Problem 3 can be typed ( using ? 2 T E x

For problems 1 and 2 all work should be completed in R. Problem 3 can be typed (using ?2TEx) or hand written and scanned as a pdf file. Your Rmd and Knitted PDF file should be titled [last name]-2.Rmd and [last name]-2.pdf (or [last name]-2a.pdf [last name]-2b.pdf)
For example, I would turn in sarver-2.Rmd and sarver-2.pdf
The iris dataset is a popular dataset to use when learning machine learning. The iris dataset is built into R.
(a) Look at the "head" of the dataset to see what the variable are and what the data looks like.
(b) Display the scatterplot for all possible pairs of variables in the dataset.
(c) We would like to be able to distinguish between the different species, To do this we can color our data based on the species. use col=c("blue"," red", "green")[iris$Species] within your plot to help distinguish the animals.
(d) Now we would like to change the shape of the points to make then stand out. Include pch iris$Species] in your plot.
 For problems 1 and 2 all work should be completed in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!