plot2dist: Plot two sets of inter-individual distances against one...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot2dist.R

Description

Plot two sets of inter-individual distances against one another, colored by self and non-self distances.

Usage

1
2
3
plot2dist(d1, d2, hirow = NULL, hicol = NULL, xlab = NULL, ylab = NULL,
  smoothScatter = FALSE, colself = "black", colnonself = "gray",
  colhirow = "green", colhicol = "orange", ...)

Arguments

d1

Output of distee.

d2

Output of distee.

hirow

Names of rows to highlight in green.

hicol

Names of columns to highlight in orange.

xlab

X-axis label (optional)

ylab

Y-axis label (optional)

smoothScatter

If TRUE, plot non-self distances with smoothScatter; if FALSE, use plot.

colself

Color to use for the self-self points. If NULL, these aren't plotted.

colnonself

Color to use for the non-self points. If NULL, these aren't plotted.

colhirow

Color to use for the hirow points. If NULL, these aren't plotted.

colhicol

Color to use for the hicol points. If NULL, these aren't plotted.

...

Passed to plot and points.

Value

None.

Author(s)

Karl W Broman, [email protected]

See Also

pulldiag, distee, summary.lineupdist

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(expr1, expr2)



# distances as RMS difference and correlation
d_rmsd <- distee(expr1, expr2, "rmsd")
d_cor <- distee(expr1, expr2, "cor")

# plot distances against one another
plot2dist(d_rmsd, d_cor)

kbroman/lineup documentation built on Dec. 4, 2017, 11:41 p.m.