Question: Please provide the R code, Thanks. Section 2: For this section, use the dataset called iris (available in base R - you do not need

Please provide the R code, Thanks.

Please provide the R code, Thanks. Section 2: For this section, usethe dataset called iris (available in base R - you do not

Section 2: For this section, use the dataset called iris (available in base R - you do not need to install anything else). You must use R to find the answers in this section. Remember to insert code and any plots you are required to produce. Your R code should be pasted at the end of this document. 1. Find the sample variance of the variable Petal.Length a. 4.894 b. 3.739 C. 3.116 d. 1.765 2. Find the sample standard deviation of the variable Petal.Length a. 4.894 b. 3.739 C. 3.116 d. 1.765 3. 27% of Petal.Length values fall below what value? a. 1.4 b. 1.6 c. 2.9 d. 5.8 4. 10% of Petal.Length values are above what value? a. 1.4 b. 1.6 c. 2.9 d. 5.8 5. Find the mean and variance of Petal Length by Species6. Find the ve number summary for the variable Petal.Length 3'. Plot a box and whisker plot for Petal. Length by Species. {Hint: there are 3 species, so you should have 3 box and whisker plots on one plot). The Main title should be I'Petal Length". The y axis label should be "Centimeters". The x axis should be labeled with the 3 species names in the dataset. Make each box and whisker plot a different oolor. Draw a horizontal line in blue across the plot at the overall mean Petal.Length. Now, look at the box and whisker plots, do you think that Petal.Length differs by Species? Explain. 3. Plot a Histogram of the Petal Length. The Main title should be "Histogram of Petal Lengths". Change x axis label to "Centi meters". Fill in the bars with the color green. Put a red vertical line at the mean Petal Length and a blue vertical line at the median Petal Length. 9. Construct one scatterplot of Petal Length by Petal Width. Use a different color for ea ch species in the scatterplot. Add a legend to the scatterplot. Does there seem to be a linear relationship between Petal Length and Petal Width within each Species? Explain

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 Mathematics Questions!