| pyramid | R Documentation |
Plots a region of the Hi-C map with a 45 degree rotation. The
rotation makes it such that the diagonal coincides with the x-axis and the
y-axis indicates distance. pyramid_difference() does the same, but
first subtracts one sample from the other.
pyramid(
exp,
chrom,
start,
end,
colour,
crop_x,
crop_y,
display_yaxis,
edge = "black",
raw,
...
)
pyramid_difference(exp1, exp2, chrom, start, end, colour = NULL, ...)
exp, exp1, exp2 |
A GENOVA |
chrom |
One of the following:
The latter two options automatically provide the |
start, end |
A |
colour |
One of the following:
|
crop_x, crop_y |
A |
display_yaxis |
A |
edge |
Draw an edge around the pyramid data region. One of the following:
|
raw |
A |
... |
Arguments passed to downstream functions. |
Some colour_scale settings are adjusted. If no limits
were set, new limits are set as c(0, quantile(x, 0.975)), wherein
x are the Hi-C values. Also, the oob parameter is replaced by
scales::squish(), the name is set by default to
"Contacts" and the aesthetics are ignored.
A ggplot object
For annotations along the linear genome, see
pyramidtracks. For annotations in the Hi-C map, see
add_tads and add_loops.
To combine multiples of pyramid plots, we recommend to use the patchwork package available on CRAN.
Other matrix plots:
compartment_matrixplot(),
hic_matrixplot(),
insulation_matrixplot(),
trans_matrixplot()
## Not run:
pyramid(exp, "chr2", 25e6, 30e6)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.