Learn R Programming

tidypaleo

Working with multi-proxy paleo-archive data can be difficult. There are multiple locations, multiple parameters, and a lot of discipline-specific norms for plot layout and notation. This package simplifies a few workflows to promote the use of R for reproducible documents in paleo-based studies.

Installation

You can install the released versio of tidypaleo from CRAN with:

install.packages("tidypaleo")

You can install the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("paleolimbot/tidypaleo")

Examples

Strat diagrams

This package exposes a number of functions useful when creating stratigraphic diagrams, including facet_abundanceh(), which combines several other functions to help create stratigraphic plots using ggplot2. The geom_col_segsh() geometry draws horizontal segments, which are commonly used to show species abundance data.

library(ggplot2)
library(tidypaleo)
theme_set(theme_paleo())

ggplot(keji_lakes_plottable, aes(x = rel_abund, y = depth)) +
  geom_col_segsh() +
  scale_y_reverse() +
  facet_abundanceh(vars(taxon), grouping = vars(location)) +
  labs(y = "Depth (cm)")

Copy Link

Version

Install

install.packages('tidypaleo')

Monthly Downloads

426

Version

0.1.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Dewey Dunnington

Last Published

October 19th, 2025

Functions in tidypaleo (0.1.4)

nested_hclust

Nested (Constrained) hierarchical clustering
label_species

Species facet labellers
layer_dendrogram

Add a dendrogram as a layer or facet
nested_prcomp

Nested Principal Components Analysis (PCA)
nested_analysis

Perform an analysis on a nested data matrix
nested_data

Prepare a parameter-long data frame for statistical analysis
kellys_lake_cladocera

Kellys Lake Data
label_geochem

Geochem facet labelers
predict.age_depth_model

Predict age and depth values
reexports

Objects exported from other packages
sequential_layer_facets

Change facet ordering behaviour
scale_y_depth_age

Age-depth scales
tidypaleo-package

tidypaleo: Tidy Tools for Paleoenvironmental Archives
rotated_facet_labels

Common plot modifications for stratigraphic plots
scale_x_abundance

Scales for relative abundance values
stat_nested_hclust

Display a dendrogram as a ggplot2 layer
plot.age_depth_model

Plot an age depth model using base graphics
plot.nested_analysis

Plot a nested analysis
keji_lakes_plottable

Keji lakes core diatom counts
theme_paleo

A Paleo-friendly ggplot2 theme
geom_point_exaggerate

Exaggerated geometries that do not train scales
facet_abundanceh

Facet for relative abundance data
as_trans_factory

Coerce and validate transforms and functions that produce them
alta_lake_210Pb_ages

Alta Lake Lead-210 and Carbon-14 Ages
geom_col_segsh

Useful geometries for strat diagrams
age_depth_interpolate

Age-depth model interpolators/extrapolators
geom_lineh

Connect observations in the vertical direction
age_depth_model

Create age depth models
age_depth_as_sec_axis

Use an age depth model as a second ggplot axis
halifax_lakes_plottable

Halifax lakes water chemistry and top/bottom diatom counts
geom_ribbonh

Vertical ribbons and area plots
layer_scores

Add scores to a plot
long_lake_14C_ages

Long Lake Carbon-14 Ages