ideogRam | R Documentation |
Main function to generate ideogram htmlwidget visualization
ideogRam(..., width = NULL, height = NULL, elementId = NULL)
... |
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. |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.