plot results of spatialSigTest()

plotSignificance(
  pval.grid = NULL,
  sigTestResults,
  color.breaks = c(0.001, 0.01, 0.05, 0.1, 0.2),
  which.test = "pvalNet",
  restrict.sites = TRUE,
  alpha.by.weight = TRUE,
  cutoff.distance = 1500,
  x.lim = c(-180, 180),
  y.lim = c(-90, 90),
  projection =
    "+proj=robin +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs"
)

Arguments

pval.grid

from spatialSigTest()

sigTestResults

from excursionTestHighRes()

color.breaks

at what significance levels should we put the color breaks?

which.test

which test result to map ("pvalNet" default , "pvalPos","pvalNeg","pvalEither")

restrict.sites

optionally only plot the most significant

alpha.by.weight

show weights in the grid as a function of transparency

cutoff.distance

what cutoff distance (in km) for the search radius

x.lim

longitude range of the map

y.lim

latitude range of the map

projection

CRS string for map projection (default = "+proj=robin +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs")

Value

plot and plot data