autoplot.RNE: autoplot for palaeosig rne

Description Usage Arguments Examples

View source: R/autoplot.RNE.R

Description

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

Usage

1
2
3
4
5
## 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  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 Dec. 7, 2018, 7:55 a.m.