Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QQ plot looks weird #2

Open
biona001 opened this issue Apr 1, 2021 · 1 comment
Open

QQ plot looks weird #2

biona001 opened this issue Apr 1, 2021 · 1 comment

Comments

@biona001
Copy link
Member

biona001 commented Apr 1, 2021

On a particular list of p-values (attached below), I get

qqplot

Code to reproduce:

using MendelPlots, CSV, DataFrames, DelimitedFiles
pvals = vec(readdlm("pvals.txt"))
qq(pvals)
display("image/png", read("qqplot.png"))

Did I do something wrong?

pvals.txt

@biona001
Copy link
Member Author

biona001 commented Apr 2, 2021

I realized that by setting a specific label (e.g. ylabel="observed -log10(p)" the yaxis font becomes normal (vertical instead of horizontal). Also if I clamp small p-values (e.g. set smallest p-value to 1e-100), the plot returns to normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant