Skip to contents

THIS IS WORK IN PROGRESS: use at your own risk.

The trrrj package provides facilities to aid in the analysis of flight trajectories.

It is in contiuous flux both because new features are added but also because of users’ feedback.

If you want to contribute but you feel overwhelmed by the git/github scaffolding, please have a look at the usethis vignette “Pull request helpers”. It marvellously describes a nice workflow and would make collaboration very easy and fruitful.


trrrj is not yet available from CRAN, but you can install the development version from github with:

# install.packages("remotes")


There are functions that allow you to:

  • Load trajectories from various providers/sources:
  • Plot trajectories
    • 2D plot
    • vertical profiles (time or distance based)
  • Analyse trajectories (Under work: more to come!)
    • extract level flight segments
  • Read/transform/save your day
    • parse Longitude/Latitude in various formats
    • determine the AIRAC cyle for a date or its range (ICAO or CFMU format); see AIRAC in the Notes


The package contains small data source files in order to provide realistic examples and use cases for guides and vignettes.

Tutorials and Guides et al.

The vignette Plotting trajectories provides a good introduction on how to use the package.

The {osn} package can be used to access the OpenSky Network Data.



Correlated Position Reports (CPR) are position report provided by the ATC radar facilities. They are correlated because they contain flight information


An AIRAC (Aeronautical Information Regulation And Control) cycle is the 28-day period that regulates the pubblication of aeronautical information

Building the documentation


In order to build the relevant pkgdown web pages while developing, execute the following code:

# How to build the pakgdown from behind proxied Internet

with_options(list(pkgdown.internet = FALSE),