plot pair-wise correlations with p value. in: a dataframe. out: a figure.

plotpairs2(data, lower.panel = panel.smooth, upper.panel = panel.cor,
    diag.panel = panel.diag, lwd = 2, col = "grey", labels = "", cex.labels = 4)

Arguments

data

a dataframe

lower.panel

can be panel.lm or panel.smooth

upper.panel

panel.cor

diag.panel

panel.diag

lwd

numeric

col

colors

labels

character

cex.labels

character

Value

a pair plot

Examples

df <- data.frame(a = 1:10, b = 1:10 + rnorm(10), c = 1:10 + rnorm(10)) plotpairs2(df)
#> [1] "p<0.01"
#> [1] "p<0.01"
#> [1] "p<0.01"