knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of rivertopo is to simplify a given tree topology (ie. for River network) with given locations. For example:
rivernetwork
from riverdist package to river topology in form of arcs between vertice.# resulted river topology data.frame(from = c("Vertex1", "Vertex2"), to = c("Vertex2", "Vertex3"))
# given location point: data.frame(id = c("Point1", "Point2", "Point3"), lat = c(42.032974, 44.032323, 47.123123), long = c(-93.581543, -92.58345343, -96.2324543), stringsAsFactors = FALSE) # resulted location topology: data.frame(from = c("Point1", "Point2"), to = c("Point2", "Point3"))
You can install the released version of rivertopo from CRAN with:
devtools::install_github("WeiquanLuo/rivertopo") # install.packages("rivertopo") # not yet avaliable
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.