For this assignment, we are asked to create a multivariate graph, which shows relationships between more than 2 variables. I decided to use RStudios iris dataset, which contains observations of 3 species of iris flowers. It contains 150 observations, and each records four physical features measured in centimeters: sepal length, sepal width, petal length, and petal width.
Using ggplot, I created a scatter plot visualization comparing petal length vs. petal width. The points are color coded by species, and the point side correlated with sepal length.
For my multivariate graph, I used the iris dataset because it comes built into RStudio, and I have been using the mtcars dataset a lot lately, so I wanted to switch it up and try something different. My graph compares petal length, petal width, sepal length, and the 3 different species of flowers. One thing I noticed was that Setosa flowers have the smallest petals on average, Versicolor flowers are a little larger, and Virginica flowers have the largest petals on average. The graph also shows that flowers with longer petals tend to have wider petals as well. I think using a multivariate graph was effective for this dataset because it allowed me to compare multiple variables at once instead of having to make separate graphs for each one. Using different colors for the species and different point sizes for sepal length made it easier to see patterns and differences between the flowers without making the graph too confusing.
Using different colors for the species creates a contrast that makes it very easy to tell which data points belong to which species of flower. For instance, we can clearly see that the Setosa flowers have a much smaller petal size on average, while Versicolor is larger, but Virginica has the largest petal size on average out of all 3. Proximity was used by how the data points are grouped together based on their petal length and width. Flowers with similar measurements are closer together, which makes it easier to see the similarities and differences between the species. The colors also help connect the points that belong to the same species even if they aren’t right next to each other. The different colors and point sizes help keep the graph visually balanced, while the labels and legend make everything look more organized and easier to follow.