knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

rivertopo

Travis build status

The goal of rivertopo is to simplify a given tree topology (ie. for River network) with given locations. For example:

# 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"))

Installation

You can install the released version of rivertopo from CRAN with:

devtools::install_github("WeiquanLuo/rivertopo")
# install.packages("rivertopo") # not yet avaliable

Workflow

Workflow for rivertopo{width=100%}

Example

![result](inst/extdata/site topo.png){width=100%}

bnresult{width=100%}



WeiquanLuo/rivertopo documentation built on Jan. 28, 2020, 11:39 a.m.