In this exercise, you will be using a dataset called Iris that is built into R. R has several datasets available, but the Iris dataset is a very popular and can be used for several data exploration scenarios.
In this exercise, you will be using a dataset called Iris that is built into R. R has several datasets available, but the Iris dataset is a very popular and can be used for several data exploration scenarios.
To load the iris dataset into R, you will want to write the following command:
library(datasets)
data(iris)
- Create a new R markdown document.
- Add a title to the document, along with your name.
- Add a level 1 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 R environment). Make sure this code chunk is visible in the document.
- Add a level 2 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 ggplot2 library, but do not include it in your presentation.
- Add a level 2 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.
Submission Instructions
For all assignments in this course, you must export the script or Markdown file to PDF. All submissions must include a PDF that includes your code and output. You are welcome to include your script or a link to GitHub or another external repo, but you must also include a PDF at a minimum. No zip files are accepted either.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
