pairs.panels(x, smooth = TRUE, scale = FALSE, density=TRUE,ellipses=TRUE,digits = 2, pch = 20,lm=FALSE, jiggle=FALSE, ...)
If lm=TRUE, then the scatter plots are drawn above and below the diagonal, each with a linear regression fit. Useful to show the difference between regression lines.
pairs.panels
is most useful when the number of variables to plot is less than about 6-8. It is particularly useful for an initial overview of the data.
pairs
pairs.panels(attitude) #see the graphics window
data(peas)
pairs.panels(peas,lm=TRUE,xlim=c(14,22),ylim=c(14,22))
Run the code above in your browser using DataLab