pairsplot: Create a 'psych::pairs.panels()' plot with standard...

View source: R/pairsplot.R

pairsplotR Documentation

Create a psych::pairs.panels() plot with standard formatting

Description

The default title includes approximate Bayes Factors-based estimates of regions providing "At least moderate evidence for the lack of a correlation" or "at least moderate evidence for a correlation." The BF approximation uses the BayesFactor::ttest.tstat() function, and finds the r value associated with a T value associated with a raw BF <.33333 or >3. Beware: The n used in these calculations is the number of rows of the data frame. If you have missing data, these estimates could be wildly off.

Usage

pairsplot(d, method = "Spearman", main = "", stars = T, color = "darkgrey")

Arguments

d

Data frame to be plotted

method

Correlation method to be used: product-moment ('pearson') or rank ('spearman') ?

main

Plot title, as in plot()

stars

Do you want magic stars? (same as pairs.panels())

color

What color do you want in the histogram bars?

Examples

d <- iris[1:100,c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')]
d$isoDist <- ACmisc::d1iso(d)
pairsplot(d)


akcochrane/ACmisc documentation built on Nov. 24, 2024, 11:22 a.m.