pairsplot | R Documentation |
psych::pairs.panels()
plot with standard formattingThe 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.
pairsplot(d, method = "Spearman", main = "", stars = T, color = "darkgrey")
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 |
color |
What color do you want in the histogram bars? |
d <- iris[1:100,c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Width')]
d$isoDist <- ACmisc::d1iso(d)
pairsplot(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.