Question: Please use R-STUDIO and show correct code. I will give you a thumbs up!! The dataset iris contains information about the measurements (in centimeters) of

Please use R-STUDIO and show correct code. I will give you a thumbs up!!

The dataset iris contains information about the measurements (in centimeters) of sepals and petals for 50 flowers from 3different species (see picture above). The first few observations are listed below.

library(dplyr)

# Save dataset in environment

myiris <- iris

# Look at the 10 first rows

head(iris,10)

Using dplyr functions (do not use any [] or $), show the top 5 flowers that had the highest petal length, sortedfrom greatest to least top length, with the variables Species and Petal.Length only. Which species had the top 5 flowers interms of petal length?

# your code goes here (make sure to add comments)

Using dplyr and ggplot2 functions (do not use any [] or $), construct a histogram of Petal.Length for thespecies that had the top 5 flowers with the longest petals (found in 3.1). Describe the distribution (e.g., use the words symmetric,skewed, the center is around _, ...).

# your code goes here (make sure to add comments)

Using dplyr functions (do not use any [] or $), are there any cases in the dataset for which the ratio of sepal lengthto sepal width exceeds the ratio of petal length to petal width?

# your code goes here (make sure to add comments)

Using dplyr functions (do not use any [] or $), create a new variable petal_ratio as the ratio of petal length topetal width then calculate the mean and standard deviation of this ratio for each species. Based on these summary statistics,does petal_ratio seem to differ across species? No need to conduct hypothesis testing but informally state if they seem todiffer and if so, how.

# your code goes here (make sure to add comments)

Using dplyr and ggplot2 functions (do not use any [] or $), create a new variable sepal_ratio as the ratio ofsepal length to sepal width then construct boxplots representing sepal_ratio for each species. Based on these visualizations,does sepal_ratio seem to differ across species? No need to conduct hypothesis testing but informally state if they seem todiffer and if so, how.

# your code goes here (make sure to add comments)

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!