Skip to contents

Saving a QQ plot with >1M p-values can be slow and create a huge PDF since each point is saved when using geom_point(). Instead, use geom_scattermore() to rasterize points. This saves an image of the points, so overlapping points are just plotted once. This dramatically reduces the size of editable PDFs.

Usage

qqgwas(pvalues, n = length(pvalues), pointsize = 4, color = "dodgerblue", ...)

Arguments

pvalues

array of p-values

n

number of tests performed. defaults to length(pvalues)

pointsize

size of points

color

color of points

...

other arguments passed to geom_scattermore()

Details

QQ plot for > 1M points using scattermore to create small editable images

Examples

qqgwas(runif(1000000))