plotHypsograph: Plot hypsography against area

Description Usage Arguments Author(s) Examples

View source: R/plotHypsograph.R

Description

Plots the hypsography of a given region against the cumulated area.

Usage

1
plotHypsograph(x, ylab = "m a.s.l.", x.res = 1000, y.res = 1000, ...)

Arguments

x

numeric vector or matrix. Contains the elevation values; see the 'Examples' for how to deal with objects from package raster.

ylab

string. The y axis label.

x.res

real number. The length of a grid cell in the x direction with unit [m].

y.res

real number. Length of a grid cell in the y direction with unit [m].

...

additional arguments. Passed to plot.default

Author(s)

Jan S

Examples

1
2
3
4
5
6
7
## Not run: 
library(raster)
dem <- matrix(c(rnorm(90),rep(NA,10)),ncol=10,nrow=10)
x <- raster(dem,xmx=50,ymx=50) 
r <- res(x)
plotHypsograph(x=values(x),x.res=r[1],y.res=r[2],col='blue')
## End(Not run)

hydro-giub/hydroBE documentation built on Sept. 20, 2019, 9:27 a.m.