DV blog

Thoughts on statistics, R, research, and other distractions.

Subject ▸ ggside

Marginal plots with ggside

A marginal plot is a combination of a bivariate plot (typically a scatter plot) and one/two univariate plots (density, boxplot, dotplot, …). It is an interesting plot since you can inspect both the relationship between two variables and the distribution of each variable. Even if there are several options to obtain a marginal plot, here I exploit ggside, an useful extension for ggplot2. Note: ggside can be used also for adding univariate plot(s) to a generic ggplot.

Read More…