Question: To load the iris dataset into R , you will want to write the following command: library ( datasets ) data ( iris ) Create
To load the iris dataset into R you will want to write the following command:
librarydatasets
datairis
Create a new R markdown document.
Add a title to the document, along with your name.
Add a level header that provides a name for the iris analysis.
Add a code chunk that assigns the iris dataset to a new variable iris is
included in the environment Make sure this code chunk is visible in
the document.
Add a level header that states 'Average Sepal Length by species'
Using dplyr group the dataset by species, and provide the average
sepal length. Include the code and the results in the document.
Add a code chunk that calls ggplot library, but do not include it in
your presentation.
Add a level header that states Visualizations'
Using a combination of histograms and box plots, visualize the
differences in sepal length, sepal width, petal length, and petal width
between the species, Set your code to be displayed in the document.
Under the visualizations, write a brief paragraph describing the
differences between the species.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
