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

Changing #1

Open
Phismil opened this issue Jan 15, 2023 · 1 comment
Open

Changing #1

Phismil opened this issue Jan 15, 2023 · 1 comment

Comments

@Phismil
Copy link

Phismil commented Jan 15, 2023

Dear Kevin,
Thank you for maintaining the repository.
I am trying to change the "main" and the "xlab" in mantel.test(), but it seems that they are not passed to the plot(). and the titles and axis remain at the default setting.
Thank you in advance

@kevinstadler
Copy link
Owner

Thanks for your message,

without seeing your code I am not sure how you are invoking plot(), or whether you are running the test on just one data set or a sequence of data sets. Could you maybe try splitting the test and its plot into separate function calls, that way I think passing your extra arguments should work, at least if you are dealing with a complex (multi-dataset) mantel test:

mytest <- mantel.test(your data, and, other, args)

plot(mytest, xlab="My label", main="My title")

In case that doesn't work you can always revert to calling the internal plotting function plotmantelsample(), which will pass on any extra plot arguments that you give it:

cultevo:::plotmantelsample(mytest, xlab="My label", main="My title")

That's just a workaround for now, you're right that this functionality should really be accessible from the normal plot() method, I will look into it.

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

2 participants