knitr::opts_chunk$set(comment = "#>", collapse = TRUE) library(jjstatsplot) data(mtcars)
This vignette covers jjcorrmat()
for creating correlation matrices and
jjscatterstats()
for scatter plots.
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.
jjcorrmat(data = mtcars, dep = c(mpg, hp, wt), grvar = NULL)
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.