ideogRam: Main function to generate ideogram htmlwidget visualization

View source: R/ideogRam.R

ideogRamR Documentation

Main function to generate ideogram htmlwidget visualization

Description

Main function to generate ideogram htmlwidget visualization

Usage

ideogRam(..., width = NULL, height = NULL, elementId = NULL)

Arguments

...

Options add ideogram object attributes

width

Fixed width for widget (in css units). The default is NULL, which results in intelligent automatic sizing based on the widget's container.

height

Fixed height for widget (in css units). The default is NULL, which results in intelligent automatic sizing based on the widget's container.

elementId

Use an explicit element ID for the widget (rather than an automatically generated one). Useful if you have other JavaScript that needs to explicitly discover and interact with a specific widget instance.

Examples

library(GenomicRanges)
data <- GRanges(c("2", "17"),
                IRanges(c(34294, 43125400), c(125482, 43125482)),
                color = c("red", "green"))

p <- ideogRam(organism = "human") %>%
    set_option(orientation = "horizontal") %>%
    add_track(data)
p


freestatman/ideogRam documentation built on Nov. 4, 2022, 1:55 p.m.