| ssvR_plot_ideogogram_data | R Documentation |
ssvR_plot_ideogogram_data
ssvR_plot_ideogogram_data(
data_dt,
gen = "hg38",
chr_to_show = paste0("chr", c(1:22, "X", "Y")),
gr_highlights = NULL,
bfc = BiocFileCache::BiocFileCache(),
grIdeo = NULL,
ideo_ymin = -1,
ideo_ymax = 0,
highlight_fill = "green",
highlight_color = NA,
highlight_alpha = 0.5,
facet_cols = 1,
facet_by_row = FALSE,
data_ymin = 0,
data_ymax = 1,
print_plot = TRUE
)
data_ymax |
library(data.table)
f = system.file("extdata/pcaOut.PC1.chr2x.txt", package = "ssvRecipes")
dat = fread(f)
dat = dat[, .(x = (start+end)/2, y = PC1, seqnames = chr)]
ssvR_plot_ideogogram_data(dat, facet_cols = 2, chr_to_show = c("chr20", "chr21", "chr22"))
ssvR_plot_ideogogram_data(dat, facet_cols = 1, data_ymax = 10, chr_to_show = c("chr20", "chr21", "chr22"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.