- Read the iris data set into a data frame.
- Print the first few lines of the iris dataset.
- Output all the entries with Sepal Length > 5.
- Plot a box plot of Petal Length with a color of your choice.
- Plot a histogram of Sepal Width.
- Plot a scatter plot showing the relationship between Petal Length and Petal Width.
- Find the mean of Sepal Length by species. Hint: You could use the tapply function. Other methods are also acceptable.
- Use the subset function to extract only rows where the species is "versicolor."
- Install the dplyr package and load it on your console.
- Use a function in the dplyr package to show only rows with Sepal Length <6 belonging to species "virginica."
Sample Solution