Skip to Content

how to identify outliers in a scatterplot matrix made using splom?

I have data on weather variables such as temperature, rainfall etc for the period 2001-2009 for various locations in India.

To see the relationship between these variables, I create a scatterplot matrix using splom with the following code.

   library(lattice)
   library(RColorBrewer)
   splom(~aod_corr[c(5,8,11,14)], lower.panel = panel.splom,
  upper.panel = function(x, y, ...) {
      panel.fill(col = brewer.pal(9, "RdBu")[ round(cor(x, y) * 4 + 5)])
      panel.text(mean(x), mean(y), round(cor(x, y),2), font=2)
  },
 
 scales = list(x = list( draw = TRUE, cex=0.1)), type = c("g", "p", "smooth"),layout =     c(1, 1))

I now wish to identify the outliers in each panel that I can trace back to the data. How can I do so?