plot.SpdPermTest: Plot result of mark permutation test of SPDs

View source: R/plots.R

plot.SpdPermTestR Documentation

Plot result of mark permutation test of SPDs

Description

Visualises the observed SPD along with the simulation envelope generated from permTest, with regions of positive and negative deviations highlighted in red and blue.

Usage

## S3 method for class 'SpdPermTest'
plot(
  x,
  focalm = 1,
  type = "spd",
  calendar = "BP",
  xlim = NA,
  ylim = NA,
  col.obs = "black",
  col.env = rgb(0, 0, 0, 0.2),
  lwd.obs = 0.5,
  xaxs = "i",
  yaxs = "i",
  bbty = "f",
  drawaxes = TRUE,
  ...
)

Arguments

x

A SpdPermTest class object. Result of random mark permutation test (see permTest)

focalm

Value specifying the name of the focal mark (group) to be plotted.

type

Whether to display SPDs ('spd') or rates of change ('roc'). Default is 'spd'.

calendar

Either 'BP' or 'BCAD'. Indicate whether the calibrated date should be displayed in BP or BC/AD. Default is 'BP'.

xlim

the x limits of the plot. In BP or in BC/AD depending on the choice of the parameter calender. Notice that if BC/AD is selected BC ages should have a minus sign (e.g. c(-5000,200) for 5000 BC to 200 AD).

ylim

the y limits of the plot.

col.obs

Line colour for the observed SPD

col.env

Colour for the simulation envelope

lwd.obs

Line width for the observed SPD

xaxs

The style of x-axis interval calculation (see par)

yaxs

The style of y-axis interval calculation (see par)

bbty

Display options; one between 'b','n',and 'f'. See details in plot.SpdModelTest.

drawaxes

A logical value determining whether the axes should be displayed or not. Default is TRUE.

...

Additional arguments affecting the plot

See Also

permTest; plot.SpdModelTest;


ahb108/rcarbon documentation built on Aug. 29, 2023, 9:21 a.m.