| bpairs | R Documentation | 
pairs plot with cor in the lower panel (can handle NAs), nice hist on the diagonal, nice scatterplot in the upper panel. Based on the examples in pairs.
bpairs(df, main = NULL, pch = 16, col = addAlpha("blue"), ...)
df | 
 Data.frame. Can contain NAs. Character columns are excluded.  | 
main | 
 Title for the overall graph. DEFAULT: NULL (from input)  | 
pch | 
 Point character. DEFAULT: 16  | 
col | 
 Color. DEFAULT:   | 
... | 
 Further arguments passed to   | 
invisible NULL
Berry Boessenkool, berry-b@gmx.de, Feb 2025
graphics::pairs
bpairs(mtcars[,1:5])
mtcarsNAs <- mtcars[,1:5]
mtcarsNAs[2,3] <- NA
mtcarsNAs[2:8,4] <- NA
bpairs(mtcarsNAs)
bpairs(iris)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.