Learn R Programming

clam (version 2.6.2)

plot_proxies: 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)

Value

A plot of the age model function with proxies.

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).

Author

Maarten Blaauw

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.

Examples

Run this code
  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)

Run the code above in your browser using DataLab