Package 'xisoband'

Title: Light Wrapper of 'isoband' to do it the Hypertidy Way
Description: Provide use of isoband package using matrix and extent like 'rasterImage', rather than degenerate rectilinear coordinates (like old R image/matlab/netcdf).
Authors: Michael D. Sumner [aut, cre]
Maintainer: Michael D. Sumner <[email protected]>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-12-05 02:55:01 UTC
Source: https://github.com/hypertidy/xisoband

Help Index


Title

Description

Title

Usage

## S3 method for class 'iso'
plot(x, ..., asp = "", add = FALSE)

Arguments

x

isobands iso object (from isoband::isobands)

...

pass arguments to graphics::lines()

asp

aspect ratio

add

add to plot or create new one

Value

nothing, used for side effect (a plot)

Examples

plot(xisobands(volcano))

Isobands via matix and extent

Description

This is purely a re-orientation of isoband it self, rather than having to construct a degenerate rectilinear data set, we just provide a matrix and optionally an extent. The extent scaling can be done independently if wanted.

Usage

xisobands(x, extent = NULL, lo = NULL, hi = NULL, nlevs = 12L)

Arguments

x

matrix of numeric

extent

xmin,xmax,ymin,ymax georeference of the x matrix

lo

low levels

hi

high levels

nlevs

number of levels in the case that neither hi nor lo provided

Details

Matrix orientation is 'raster', i.e. like rasterImage() and not like image() which is isoband is expecting.

Values for lor and/or hi may be provided or left out. If both are left out can use nlevs to get a quantile set of levels from the data.

Value

and isobands, iso object

Examples

xisobands(diag(10))