Visualize enrichment of variants derived from xQTLanno_genomic

xQTLvisual_anno(
  snpHits,
  axis_text_size = 1.3,
  axis_title_size = 1.3,
  legend_text_size = 1.1,
  title_size = 1.4,
  xlab_text = "",
  ylab_text = "",
  title_text = "",
  point_color = NULL
)

Arguments

snpHits

A data.table object from result of xQTLanno_genomic

axis_text_size

(numberic) text size of the axis labels

axis_title_size

(numberic) text size of the axis title

legend_text_size

(numberic) text size of the legend text

title_size

(numberic) text size of the title of the plot

xlab_text

(character) Lable for x-axis

ylab_text

(character) Lable for x-axis

title_text

(character) Title of the plot

pValueBy

Cut step of pvlaue. Defaults: 5

annoType

"enrichment" or "overlapping"

Value

A ggplot object

Examples

# \donttest{
url1 <- "http://bioinfo.szbl.ac.cn/xQTL_biolinks/xqtl_data/gwas/gwasSub.txt.gz"
snpInfo <- fread(url1, sep="\t")
snpHits <- xQTLanno_genomic(snpInfo)
p <- xQTLvisual_anno(snpHits)
# }