View source: R/Proxytools_helpers.R
rev_time_axis | R Documentation |
Reverse the time axis of 'zoo::zoo'
rev_time_axis(xin)
xin |
Proxytibble with proxy data in 'zoo::zoo' format, or irregular time series object ('zoo::zoo'), xin can be multivariate |
zoo with returned time axis
# Load Monticchio example data from PTBoxProxydata
library(PTBoxProxydata)
mng <- PTBoxProxydata::ProxyDataManager()
monticchiodata <- PTBoxProxydata::load_set(mng,'monticchio_testset',zoo_format = 'zoo', force_file=TRUE)
# Change from yrs BP to yrs AP (i.e. forward instead of backward) time axis for proxytibble
monticchiodata_rev <- rev_time_axis(monticchiodata)
# Change from yrs BP to yrs AP (i.e. forward instead of backward) time axis for zoo
monticchiozoo_rev <- rev_time_axis(monticchiodata$proxy_data[[1]])
# Plot zoo data
plot(monticchiozoo_rev)
plot(monticchiodata_rev$proxy_data[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.