autoplot.RNE: autoplot for palaeosig rne

View source: R/autoplot.RNE.R

fortify.RNER Documentation

autoplot for palaeosig rne

Description

Plots of r2 against fraction of sites deleted randomly, by neighbourhood or by environmental similarity.

Usage

## S3 method for class 'RNE'
fortify(object, which = 1, unit = "")

## S3 method for class 'RNE'
autoplot(object, which = 1, ylim, unit = "km")

Arguments

object

RNE object from palaeosig

which

which reconstruction

unit

character. Neighbourhood units

ylim

numeric vector length 2. y limits

Examples

  require(fields)
  require(palaeoSig)
  require(rioja)
  require(ggplot2)
  data(arctic.env)
  data(arctic.pollen)

  #using just the first 100 sites so code runs in an reasonable time, but still slow
  arctic.d <- rdist.earth(arctic.env[1:100,c("Longitude","Latitude")], miles = FALSE)
  arctic.rne <- rne(y = arctic.pollen[1:100,], env = arctic.env$tjul[1:100],
    geodist = arctic.d, fun = MAT, neighbours = c(0,50,200),
    subsets = c(1,.5,.1), k = 5)
autoplot(arctic.rne)

richardjtelford/ggpalaeo documentation built on Nov. 7, 2022, 11:03 p.m.