omitdiag | R Documentation |
Replace the diagonal (that is, self-self distances) from a distance matrix
calculated by distee()
or disteg()
with missing
values (so that only self-nonself distances are left).
omitdiag(d)
d |
A distance matrix calculated by |
We use the row and column names to identify which entries are self-self.
A matrix of the same form as the input, but with self-self distances
replaced with NA
.
Karl W Broman, broman@wisc.edu
pulldiag()
, distee()
, disteg()
,
summary.lineupdist()
, plot2dist()
,
plot.lineupdist()
data(expr1, expr2)
# distance as RMS difference
d <- distee(expr1, expr2)
# focus on the self-nonself distances
# (replace self-self distances with NA)
d_selfnonself <- omitdiag(d)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.