Chapter 4 Problem 4
Using the iris dataset in the datasets package (dataset package belongs to Base R and so you don’t need to download the package.) replicate the plot below ing the following settings.
- Set size = 6 for the size of points
- Set alpha = 0.5
- Use theme_minimal()
ggplot(iris, aes(Sepal.Length, Sepal.Width)) +
geom_point(aes(shape = Species, color = Species), size = 6, alpha = 0.5) +
theme_minimal() +
labs(
title = "Scatterplot",
subtitle = "Sepal.Length Vs Sepal.Width",
caption = "Source: iris"
)