R/pairs_with_lowess.R

pairs_with_lowess <- function(data) {
    pairs(data,
          upper.panel = function(x,y) {
              points(x,y)
              lines(lowess(x,y), col = 2)
          },
          lower.panel = function(x,y) {
              points(x,y, type="n")
          }
          )
}					

Try the yapomif package in your browser

Any scripts or data that you put into this service are public.

yapomif documentation built on May 2, 2019, 4:51 p.m.