Correlations and Scatter Plots
Source:vignettes/05-correlations-scatterplots.Rmd
05-correlations-scatterplots.Rmd
This vignette covers jjcorrmat()
for creating
correlation matrices and jjscatterstats()
for scatter
plots.
Correlation matrices with jjcorrmat()
jjcorrmat()
visualises pairwise correlations between
numeric variables and reports the associated tests. Here we look at the
relationships between mpg
, hp
and
wt
in the mtcars
data.
Scatter plots with jjscatterstats()
jjscatterstats()
produces a scatter plot with a
regression line and textual output describing the correlation and
regression statistics.
jjscatterstats(data = mtcars, dep = mpg, group = hp, grvar = NULL)