Description Usage Arguments Value Examples
Helper function: add horizontal distances from left boundary coordinates
1 | addHorizontalDistances(gisData, leftBoundaryRow = 1)
|
gisData |
data.frame as retrieved by importShapefiles() |
leftBoundaryRow |
row number index of "gisData" which contains the left model boundary (Default: 1) |
Model coordinates instead of "real" world coordinates
1 2 3 4 5 6 7 8 9 | shp.dir <- system.file("extdata", "qgis", package="kwb.demeau")
shp.files <- dir(path = shp.dir, pattern = ".shp", full.names = TRUE)
### Store GIS data in R data.frame "gisData"
gisData <- importShapefiles(shp.files)
### Add horizontal distances from left boundary and ignore all features that
### have larger distances than "right" boundary
gisData <- addHorizontalDistances(gisData)
### Plot horizontal model coordinates
maxVertical <- -abs(max(gisData$fcBottom, na.rm=TRUE))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.