plot_proxies: Produce a plot of proxy values against calendar age.

View source: R/postanalysis.R

plot_proxiesR Documentation

Produce a plot of proxy values against calendar age.

Description

Produce a plot of proxy values against calendar age.

Usage

plot_proxies(prox, errors = TRUE, proxcol = grey(0.5), revyr = TRUE)

Arguments

prox

Position of the proxy that should be plotted, e.g. 1 for the first proxy in the file.

errors

Plot an error envelope.

proxcol

Colour of the error envelope.

revyr

Direction of the calendar scale (revyr=TRUE will reverse the calendar scale from the default FALSE).

Details

Only works after running clam on the core using proxies=TRUE. Requires a file containing the core depths as the first column, and any proxy values on subsequent columns. Values should be separated by comma's. The file should be stored as a .csv file in the core's directory.

Value

A plot of the age model function with proxies.

Author(s)

Maarten Blaauw

Examples

  base_temp_dir <- tempdir()
  clam_dir <- file.path(base_temp_dir, "clam_runs")
  dir.create(clam_dir, recursive = TRUE, showWarnings = FALSE)
  clam(coredir=clam_dir, proxies=TRUE)
  plot_proxies(3)
  plot_proxies(3, revyr=FALSE)

clam documentation built on April 4, 2025, 4:45 a.m.