plot_raw: Plots the raw input data as a polygon and optionally also bar...

View source: R/plot_raw.R

plot_rawR Documentation

Plots the raw input data as a polygon and optionally also bar plots against age

Description

The function produces a polygon plot and optionally overlays a bar plot of the raw input data.

Usage

plot_raw(
  series = NULL,
  proxy = NULL,
  my_col = "grey",
  bars = FALSE,
  y_lim = NULL,
  x_lab = NULL,
  y_lab = NULL,
  main = NULL,
  ...
)

Arguments

series

The input data frame. A matrix with the following columns: CmTop, CmBot, AgeTop, AgeBot, Volume, and one or more columns with the data which should be re-sampled (variables).

proxy

a character string with the name of the selected variable. By default (i.e. proxy = NULL), the 6th column of the input data frame is selected.

my_col

a character string defining the color for the polygon.

bars

logical. By default bars = FALSE. If bars = TRUE, a bar plot is added as an overlay, with sample ages estimated as mid-sample ages.

y_lim

a numeric vector of length 2, giving the y coordinates range.

x_lab

Optional. A character string specifying the units of the age scale. By default xlab = NULL and the x-axis scale label is written as age.

y_lab

Optional. A character string specifying the y-axis label.

main

Optional. A character string specifying the main plot title.

...

...

Value

A plot.

Author(s)

Walter Finsinger

Examples

co <- tapas::co_char_data
tapas::plot_raw(co)

wfinsinger/tapas documentation built on Aug. 22, 2024, 4:28 a.m.