Description Usage Arguments Details Value Methods (by generic) See Also Examples
View source: R/guide_axis_ideogram.R
Places an ideogram next to the axis and indicates the data range interpreted
as genomic positions on the ideogram. The ideograms need to be setup first
with the setup_ideogram()
function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
title |
A character string or expression indicating a title of guide.
If |
check.overlap |
silently remove overlapping labels, (recursively) prioritizing the first, last, and middle labels. |
angle |
Compared to setting the angle in |
n.dodge |
The number of rows (for vertical axes) or columns (for horizontal axes) that should be used to render the labels. This is useful for displaying labels that would otherwise overlap. |
order |
Used to determine the order of the guides (left-to-right, top-to-bottom), if more than one guide must be drawn at the same location. |
position |
Where this guide should be drawn: one of top, bottom, left, or right. |
chromosome |
A |
genome |
A |
ideo_size |
A |
funnel_size |
A |
funnel_col |
A |
regular_axis |
A |
Currently does not support S4Vector or genomic scales (yet).
A list with the S3 class guide
.
guide_train
: Trainer for ideogram axis. See
guide-exts
.
guide_transform
: Transformer for ideogram axis. See
guide-exts
.
guide_gengrob
: Graphic object generator for ideogram axis.
See guide-exts
.
The setup_ideograms()
function for importing
and caching ideogram data.
Other position guides:
guide_genomic_axis()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # Setup ideograms and make a basic plot
setup_ideograms(genome = "hg38")
p <- ggplot(iris, aes(Sepal.Width * 1e7, Sepal.Length * 1e7)) +
geom_point()
# As main axis
p + guides(x = guide_ideogram_axis("hg38", chromosome = "chr2"))
# As secundary axis
p + guides(x.sec = guide_ideogram_axis("hg38", chromosome = "chr2",
regular_axis = FALSE))
# Without funnel
p + guides(x = guide_ideogram_axis("hg38", chromosome = "chr2",
funnel_size = 0))
# Without funnel or indicator
p + guides(x = guide_ideogram_axis("hg38", chromosome = "chr2",
funnel_size = 0, funnel_col = NA))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.