plotOverlaps | R Documentation |
Plots the significance distribution of cluster-cluster or segment-segment
overlap statistics provided by clusterCluster
,
clusterProfile
or segmentOverlaps
, where
a color gradient is
calculated from -log(p)
, and the text shows the overlap numbers,
e.g., the number of overlapping features for clusterCluster
,
or the Jaccard index or relative intersect values for
segmentOverlaps
. Option text
allows to select
which values to plot as text. Only "overlap" is available for a
clusterCluster
results, while for segmentOverlaps
the Jaccard index ("jaccard"), or the relative intersect size can
be shown: "intersect.target" and "intersect.query" are the intersect
divided by total target or query length, respectively.
Note that two
distinct p-value cutoffs can be visualyized: p-values <=p.min
are shown in black, and p-values p.txt
are shown in white instead
of black text (thus becoming visible on the black of significant
overlaps).
plotOverlaps(
x,
p.min = 0.01,
p.txt = p.min * 5,
p.max,
n = 100,
col,
values = c("overlap", "count", "statistic", "jaccard", "text"),
type = 1,
txt.col = c("black", "white"),
text.cex = 1,
rmz = TRUE,
short = TRUE,
scale = 1,
round,
axis = 1:2,
show.sig = TRUE,
show.total = FALSE,
...
)
x |
a ‘clusterOverlaps’ object returned by
|
p.min |
significance cutoff, p-values equal or smaller to this cutoff will appear black (one-sided tests) or red/blue (two-sided tests) |
p.txt |
p-value cutoff for showing overlap numbers as white instead of black text |
p.max |
p-value cutoff for starting the color scale, e.g. 0.05; useful for generally high p-values. |
n |
number of color shades between |
col |
color ramp, default are grey values (one-sided) or
red (above) and blue (below) for two-sided tests, length of
this vector overrules parameter |
values |
selection of text (numeric values) to plot, depends
on available data in |
type |
1 for one-sided or 2 for two-sided tests color scheme, negative values of two-sided tests are reflected in negative p-values |
txt.col |
two colors used for the plot text, ie., the overlap counts; the second is used if 'p<p.txt' as a discrete signficance cutoff |
text.cex |
relative font size for text fields |
rmz |
remove 0 from text values |
short |
logical, indicating whether to cut higher overlap
numbers; currently: division by 1000 and replacement by |
scale |
factor to divide overlap numbers with, useful for low numbers in Jaccard index |
round |
number of digits to round overlap numbers to (useful for Jaccard index) |
axis |
integer vector, sets whether x-axis (1,3) and/or
y-axis (2,4) are drawn; the column and row names of |
show.sig |
only for overlap lists sorted by
|
show.total |
show total numbers (counts) of overlapping features on top and right axes |
... |
arguments to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.