QQ plots with lots of points can be slow. Since most of the points overlap we don't actually have to plot all of them (and in most cases the output will be identical.)
1 |
This function will take a value k (default 2000) and sample that many pvalues in an intelligent way such that we don't lose information, then plot the log observed vs expected pvals in a nice way.
The optimal value of k depends on the resolution/size of the plot. Very high resolution or very large plots may need larger k to look correct.
Additional arguments in ... are passed to plot().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.