R/visualize.R
xQTLvisual_genoBox.Rd
Boxplot of values stratified by genotypes with customized data
xQTLvisual_genoBox(
genoDT,
axis_text_size = 1.3,
axis_title_size = 1.3,
title_size = 1.4,
xlab_text = "Genotypes",
ylab_text = "Normalized expression",
ylim_v = NULL,
title_text = "",
jitter_color = NULL
)
(Data.framt) including two columns, "value" and "genotypes"
(numberic) text size of the axis labels
(numberic) text size of the axis title
(numberic) text size of the title of the plot
(character) Lable for x-axis
(character) Lable for x-axis
(numeric vector) Set scale limits
(character) Title of the plot
(A character vector) Set the point color.
A ggplot object.
# \donttest{
url1 <- "http://bioinfo.szbl.ac.cn/xQTL_biolinks/xqtl_data/eqtl/eqtlExpLabel.txt"
genoDT <- data.table::fread(url1)
box_plot <- xQTLvisual_genoBox(genoDT, title_size=1.6, title_text="Geno-Exp association" )
# }