knitr::opts_chunk$set(echo = TRUE) library(badger)
r badge_devel("chronosphere-info/r_client", "green")
r badge_cran_release("chronosphere", "blue")
r badge_cran_download("chronosphere", "grand-total", "yellow")
r badge_cran_checks("chronosphere")
The implemented functions allow the query, download, and import of remotely-stored and version-controlled data items. The inherent meta-database maps data files and import code to programming classes and allows access to these items via files deposited in public repositories. The purpose of the project is to increase reproducibility and establish version tracking of results from (paleo)environmental/ecological research.
Please note that the primary entities were renamed as part of the update to **v0.6.0**. The changes are:
These changes were necessary so formal variables can be introduced, which will allow the connection of data products that come from different sources. These are not intentended to be changed in the future.
## library(chronosphere) ## # see available datasets ## available <- datasets() ## # download some data ## # NaturalEarth land polygons ## ne <- chronosphere::fetch("NaturalEarth", ser="land", ver="4.1.0") ## # The entire Paleobiology Database ## pbdb <- chronosphere::fetch("pbdb", ver="20230814") ## # collections ## colls <- unique(pbdb[, c("collection_no","lng", "lat")]) ## # plot records ## png("man/figures/chronosphere_example.png", width=1400, height=800) ## plot(ne$geometry, col="gray", border=NA) ## points(colls$lng, colls$lat, cex=0.3, pch=16, col="#54121212") ## dev.off()
library(chronosphere) # see available datasets available <- datasets() # download some data # NaturalEarth land polygons ne <- chronosphere::fetch("NaturalEarth", ser="land", ver="4.1.0") # The entire Paleobiology Database pbdb <- chronosphere::fetch("pbdb", ver="20230814") # collections colls <- unique(pbdb[, c("collection_no","lng", "lat")]) # plot records plot(ne$geometry, col="gray", border=NA) points(colls$lng, colls$lat, cex=0.3, pch=16, col="#54121212")
The following updates are currently scheduled:
- Access to variables: grouping entites that link data series together.
- Access to datafiles via a secondary URL.
- Using datafiles
for the offline structuring of the downloaded files.
- Webpages for individual data series.
The original chronosphere was a true monolith that included lots of additional functionality to manipulate paleoenvironmental data. For better compliance with UNIX philosophy and more efficient distribution/development, the original package has been split to multiple R packages:
chronosphere
: version-controlled data distribution.rgplates
: functions related to tectonic reconstructions.via
: Virtual Arrays for efficient organisation of high-dimensional data.This is a beta version, and like R, comes with absolutely no warranty.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.