此函数用于绘制xQTL孟德尔随机化分析的火山图,需先计算PVE。
Usage
xQTL_volcano_plot(
dat,
breaks = c(0.1, 0.2, 0.3, 0.4, 0.5),
scale_color = c("green", "grey", "red"),
FDR_method = "fdr",
save_plot = TRUE,
pdf_name = "volcano_plot",
width = 6,
height = 5,
save_path = "./"
)
Arguments
- dat
数据框,xQTL分析后的结果数据。
- breaks
数值,PVE刻度大小。
- scale_color
字符串向量,火山图气泡颜色设置,默认c("green", "grey", "red")。
- FDR_method
字符串,FDR矫正方法,默认值为"fdr"。其它方法详见p.adjust函数的method参数。
- save_plot
布尔值,是否保存火山图,默认为TRUE。
- pdf_name
字符串,保存的pdf图形文件名,默认值为"plot"。
- width
数值,图形宽度。
- height
数值,图形高度。
- save_path
字符串,图形文件保存路径,默认值为"./"。