Skip to content

number of observations used in scatterplot.matrix()

4 messages · Maria Dulce Subida, Luciano Selzer, Peter Solymos

#
Maria,

You can have number of complete pairs for each column pair combination as

(x <- matrix(c(NA,NA,NA,1,2,3), 2, 3))
(x.na <- !is.na(x))
t(x.na) %*% x.na

You can supply this as is or its lower triangle as vector to the
plotting function.

Cheers,

Peter



On Fri, Jan 21, 2011 at 8:25 AM, Maria Dulce Subida
<mdsubida at icman.csic.es> wrote: