Tools for Easier Analysis of Meteorological Fields
Overview
Many useful functions and extensions for dealing with meteorological data in the tidy data framework. Extends 'ggplot2' for better plotting of scalar and vector fields and provides commonly used analysis methods in the atmospheric sciences.
New features
geom_streamline()gets astartargument to manually specify starting locations for the integration.geom_streamline()handles groups defined in different grids better.- When reading multiple files,
ReadNetCDF()will add a "file" column that uses the names of the vector of files (if it has). - Reading multiple files with
ReadNetCDF()does not requirefurrrbut will use it if it's installed. - New function
robust_breaks()to make a version of a break function that is not sensitive to outliers.
Bug fixes
- Errors in the mismatched spatial positioning of
WaveFlux()calculation results and the internal calculation of the Coriolis parameter(f) have been corrected. Additionally, robust adjustments have been made to data at low latitudes (near the equator). - Fixes parsing of some netCDF timestamps (#217).
- Fixes return value of
FitWave()to always return integerk. - Fixes regression in
ReadNetCDF()when selecting one point. (#219, thanks @delie0512)
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-15
- ERROR11 OK, 2 ERROR2026-10-06
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-08
Show 2 earlier changesHide 2 earlier changes
- ERROR12 OK, 1 ERROR2026-06-07
- OK14 OK2026-03-10
Documentation
- Help pages
- 56 (3 internal)includes a package overview page
- Examples that run
- 90%36 run in a plain check (12 of them under a condition) · 1 only when donttest examples are enabled (R CMD check --as-cran) · 3 never run
- Exported functions with examples
- 78%
- Documented parameters
- 80%
- Return-value docs
- 55%
- Help pages citing references
- 14%
Downloads
Repository
- PRs merged (all time)
- 79%
- Median days to close, 50 most recently updated closed issues
- 16
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
12 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/eliocamp/metr on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2026-10-08 · The repository has a site deploy workflow
pkgdown site last built 2026-10-08
Show all practicesHide 3 practices
Dependencies
Installing metR adds 44 packages (27 with compiled code, 49 MB of source tarballs). Heaviest: stringi 11 MB, sf 9.3 MB, ggplot2 6.0 MB.
Show all 26 packagesHide all 26 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 0.19.0Latest
- RR 4.6.0 released · 2026-04-24
- 0.18.32025-12-09 · diff ↗
- 0.18.2
- 0.18.1
- RR 4.5.0 released · 2025-04-11
- 0.18.02025-02-24 · diff ↗
- 0.17.02025-01-13 · diff ↗
- 0.16.0
- RR 4.4.0 released · 2024-04-24
- 0.15.02024-02-09 · diff ↗
- 0.14.1
- RR 4.3.0 released · 2023-04-21
- 0.14.02023-03-23 · diff ↗
- 0.13.0
- RR 4.2.0 released · 2022-04-22
Show 17 earlier eventsHide 17 earlier events
- 0.12.02022-02-15 · diff ↗
- 0.11.02021-09-20 · diff ↗ ·
added 9 exports
label_placer_all, label_placer_flattest, label_placer_fraction, label_placer_minmax, label_placer_n, label_placer_random, scale_label_alpha_continuous, scale_label_colour_continuous, scale_label_size_continuous - 0.10.02021-08-07 · diff ↗ ·
added 10 exports
Detrend, ResidLm, sa_height, sa_height_axis, sa_height_breaks, sa_height_trans, sa_pressure, sa_pressure_axis, sa_pressure_trans, sa_temperature - 0.9.22021-05-21 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.9.1
- 0.9.02020-11-25 · diff ↗ ·
added 5 exports
ScaleDiscretised, discretised_scale, label_placement_minmax, scale_fill_discretised, scale_fill_divergent_discretised - 0.8.02020-10-25 · diff ↗ ·
removed 1 export
scale_dx_continuousadded 5 exports
label_placement_all, label_placement_flattest, label_placement_fraction, label_placement_n, label_placement_random - RR 4.0.0 released · 2020-04-24
- 0.7.0
- 0.6.02020-02-10 · diff ↗ ·
added 8 exports
EPflux, WaveEnvelope, denormalise, is.full_season, scale_colour_divergent, scale_dx_continuous, scale_mag_continuous, seasonaly - 0.5.0
- 0.4.0
- RR 3.6.0 released · 2019-04-26
- 0.3.0
- 0.2.02018-11-19
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-11-19
- Total releases
- 24 / 8 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 4.1.0
- Bundled data
- 736 KB / 3 files
- Download size
- 3.5 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("metR")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.