
Plot histograms of self-self and self-nonself distances from a distance
matrix calculated by distee()
or disteg()
.
# S3 method for lineupdist
plot(x, breaks = NULL, add.rug = TRUE, what = c("both", "ss", "sn"), ...)
None.
Output of distee()
or disteg()
.
Optional vector of breaks, passed to
graphics::hist()
, though if it is length 1, we interpret it as
the number of breaks and ensure that both histograms use the same set of
breaks.
If true, also include graphics::rug()
below
histograms.
Indicates whether to plot both self-self and self-nonself
distances (or correlations) or just one or the other. ("ss"
indicates self-self and "sn"
indicates self-nonself.)
Ignored at this point.
Karl W Broman, broman@wisc.edu
We call pulldiag()
and omitdiag()
to get the
self-self and self-nonself distances.
If all of the self-self distances are missing, we plot just the self-nonself distances.
pulldiag()
, distee()
,
plot2dist()
data(expr1, expr2)
expr1 <- expr1[,1:500]
expr2 <- expr2[,1:500]
# distance as correlation
d <- distee(expr1, expr2, "cor")
# plot histograms of self-self and self-nonself correlations
plot(d)
Run the code above in your browser using DataLab