5) Create a code block that makes a density plot of Petal.Width for one iris species. At the start of the code block, in
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
5) Create a code block that makes a density plot of Petal.Width for one iris species. At the start of the code block, in
5) Create a code block that makes a density plot of Petal.Width for one iris species. At the start of the code block, include a character variable called Focal.Species that is set to either "setosa", "virginica", or "versicolor". Using a series of if statements, use the value of Focal.Species to determine which of the three plots to make. The code should be able to make any of the three plots, depending on what Focal.Species is set to.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!