Learn R Programming

Overview

aelab is an R package for aquatic ecology data analysis. It provides tools for:

  1. GHG flux calculation — process raw data from LI-COR and LGR gas analyzers, calculate chamber flux, convert units, compute Minimum Detectable Flux (MDF), and aggregate to CO₂-equivalents.
  2. Net ecosystem metabolism (NEM) — calculate gross primary production (GPP), ecosystem respiration (ER), and net ecosystem production (NEP) from high-frequency dissolved oxygen data.
  3. Statistical analysis — descriptive statistics, outlier detection, normality testing, data transformation, one-way ANOVA (Tukey HSD), and Kruskal-Wallis (Dunn post-hoc) with compact letter display.
  4. Visualization — ggplot2-based plot wrappers (point, line, box, bar) with a consistent theme and custom colour palettes.

Installation

The aelab package can be installed from:

  1. GitHub (development version):
# install.packages("devtools")
devtools::install_github("Zhao-Jun-Yong/aelab")
  1. CRAN (stable version):
install.packages("aelab")

Features

For a full walkthrough with worked examples and code output, see the package vignette:

vignette("aelab")

Copy Link

Version

Install

install.packages('aelab')

Monthly Downloads

310

Version

1.1.1

License

GPL (>= 3)

Maintainer

Zhao-Jun Yong

Last Published

February 26th, 2026

Functions in aelab (1.1.1)

df_trans

df_trans
find_outlier

find_outlier
convert_time

convert_time
hobo

Processed data from Onset HOBO Dissolved Oxygen Data Logger. A dataset containing 336 dissolved oxygen concentrations changed over time.
normality_test_t

normality_test_t
plot_bar

plot_bar
process_weather

convert_time
plot_box

plot_box
plot_hobo

plot_hobo
process_weather_month

process_weather_month
scale_colour_aelab_c

scale_colour_aelab_c
scale_fill_aelab_c

scale_fill_aelab_c
convert_ghg_unit

convert_ghg_unit
scale_colour_aelab_d

scale_colour_aelab_d
combine_weather_month

combine_weather_month
plot_line

plot_line
plot_map_taiwan

plot_map_taiwan
plot_point

plot_point
normality_test_aov

normality_test_aov
process_hobo

process_hobo
scale_fill_aelab_d

scale_fill_aelab_d
tidy_ghg_analyzer

tidy_ghg_analyzer
combine_hobo

combine_hobo
calculate_regression

calculate_regression
calculate_MDF

calculate_MDF
calc_chla_trichromatic

calc_chla_trichromatic
calculate_total_co2e

calculate_total_co2e
combine_weather

combine_weather
calculate_ghg_flux

calculate_ghg_flux
ks_test

ks_test
descriptive_statistic

descriptive_statistic
calculate_do

calculate_do
process_info

process_info
n2o

Processed data from N2O LI-COR Trace Gas Analyzer. A dataset containing 567 N2O concentrations changed over time.
aelab_palettes

aelab_palettes
aov_test

aov_test