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-11-05 02:39:58 UTC |
Source: | https://github.com/hypertidy/xisoband |
Title
## S3 method for class 'iso' plot(x, ..., asp = "", add = FALSE)
## S3 method for class 'iso' plot(x, ..., asp = "", add = FALSE)
x |
isobands iso object (from isoband::isobands) |
... |
pass arguments to |
asp |
aspect ratio |
add |
add to plot or create new one |
nothing, used for side effect (a plot)
plot(xisobands(volcano))
plot(xisobands(volcano))
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.
xisobands(x, extent = NULL, lo = NULL, hi = NULL, nlevs = 12L)
xisobands(x, extent = NULL, lo = NULL, hi = NULL, nlevs = 12L)
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 |
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.
and isobands, iso object
xisobands(diag(10))
xisobands(diag(10))