Marginal distributions vs. bivariate associations
| Marginal Distributions | Bivariate Associations | |
|---|---|---|
| Description | The distribution of each variable individually (i.e., without reference to the values of the other variables). | Describing the association between two numeric variables. |
| Visually |
Plot each variable individually. You could use, for example, geom_density() for a density plot, geom_boxplot() for a boxplot or geom_histogram() for a histogram to comment on and/or examine:
|
Plot associations among two variables. You could use, for example, geom_point() for a scatterplot to comment on and/or examine:
|
| Numerically |
Compute and report summary statistics e.g., mean, standard deviation, median, min, max, etc. You could, for example, calculate summary statistics such as the mean ( mean()) and standard deviation (sd()), etc. within summarize()
|
Compute and report the correlation coefficient. You can use the cor() function to calculate this
|