
Last chance! 50% off unlimited learning
Sale ends in
mantel.test(m1, m2, nperm = 1000, graph = FALSE, ...)
plot()
(to add a
title, change the axis labels, and so on).graph = TRUE
, the functions plots the density estimate of
the permutation distribution along with the observed Z-statistic as a
vertical line.
The ...
argument allows the user to give further options to
the plot
function: the title main be changed with main=
,
the axis labels with xlab =
, and ylab =
, and so on.q1 <- matrix(runif(36), nrow = 6)
q2 <- matrix(runif(36), nrow = 6)
mantel.test(q1, q2, graph = TRUE,
main = "Mantel test: a random example with 6 X 6 matrices",
xlab = "z-statistic", ylab = "Density",
sub = "The vertical line shows the observed z-statistic")
Run the code above in your browser using DataLab