The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

tsvisibility

Natural and horizontal visibility graphs of time series, their classical exact results, and the basins of visibility, total visibility number and partial visibility curves introduced by Nuño and Muñoz (2020).

Installation

# from CRAN (once accepted)
install.packages("tsvisibility")
# development version from a local source
install.packages("tsvisibility_0.1.0.tar.gz", repos = NULL, type = "source")

Example

library(tsvisibility)

x <- logistic_series(r = 4, n = 2000, x0 = 0.2)
g <- vgraph(x, type = "horizontal")
g
hvg_lambda(g)$lambda          # < log(3/2): chaos
visibility_irreversibility(g) # > 0: irreversible

# partial visibility curve of the period-4 orbit
y <- logistic_series(logistic_superstable(2), 48, x0 = 0.3)
cv <- partial_visibility_curve(y, method = "exact")   # needs lpSolve
plot(cv); lines(pvc_theoretical(2), col = "red")
pvc_theoretical_length(Inf)   # 1.0414387863956818

Main functions

Group Functions
Graphs vgraph(), visibility_edges(), visibility_matrix(), vgraph_to_igraph(), plot_visibility()
Degrees visibility_degree(), degree_distribution(), degree_entropy(), hvg_lambda(), visibility_irreversibility(), visibility_motifs()
Exact results hvg_degree_iid(), hvg_mean_degree_periodic(), feigenbaum_degree_distribution()
Basins basin_point(), basin_set(), visibility_point(), visibility_set(), visibility_distribution(), max_visibility_point(), greatest_basin_point()
Partial visibility total_visibility(), partial_visibility_set(), partial_visibility_curve(), pvc_length(), pvc_theoretical(), pvc_theoretical_length()
Logistic map logistic_series(), logistic_superstable(), feigenbaum_constants()

References

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.