title: red lines in R pairs function
body: <p>I am wondering what the red lines in R pairs function are.</p>
  
  <p><code>pairs(USJudgeRatings, lower.panel = panel.smooth, upper.panel = panel.cor)</code></p>
  
  <p><img src="https://i.stack.imgur.com/XMeqd.png" alt="R pairs function"></p>
  
  <p>What I am actually looking for is a way to control these lines in the plot of scatterplots so that they represent some sort of quantiles/means. Basically the line plots should  first bin X and Y datasets then  pass lines through the means/quantiles of the bins and overlay on the scatter plots. Is this possible through an R function?</p>