ssvR_plot_ideogogram_data: ssvR_plot_ideogogram_data

ssvR_plot_ideogogram_dataR Documentation

ssvR_plot_ideogogram_data

Description

ssvR_plot_ideogogram_data

Usage

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
)

Arguments

data_ymax

Examples

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"))

jrboyd/ssvRecipes documentation built on May 22, 2022, 7:07 a.m.