ximage.Rd
ximage combines the best of image() and rasterImage().
ximage(
x,
extent = NULL,
zlim = NULL,
add = FALSE,
...,
xlab = NULL,
ylab = NULL,
col = hcl.colors(96, "YlOrRd", rev = TRUE),
breaks = NULL
)
matrix, array, or native raster (nativeRaster, or raster)
optional, numeric xmin,xmax,ymin,ymax
optional, range of data to set colour map (to maintain absolute colours across multiple plots)
add to plot, or start afresh
passed to plot when add = FALSE
x axis label, empty by default
y axis lable, empty by default
optional colours to map matrix/array data to
a set of finite numeric breakpoints for the colours:
a list with 'x' and 'extent' invisibly (extent is the 0,ncol 0,nrow space of the array if not supplied)
ximage()
is designed like graphics function with the following limitations removed,
image()
1:4, rasterImage()
5:7.
Allow arrays with RGB/A.
Allow matrix with character (named colours, or hex) or raw (Byte) values
Allow list output from vapour, a list with numeric values, hex character, or nativeRaster
Plot in 0,ncol 0,nrow by default
Override default with extent (xmin, xmax, ymin, ymax)
Allow general numeric values.
Start a plot from scratch without setting up a plot to paint to.
Plot by default in 0,ncol,0,nrow if unspecified.
ximage uses the GIS raster default used by rasterImage. WIP: There is a similar function 'image0?' that provides the same features but assumes that orientation is like image...
Colours by 'col' are only mapped for numeric data, this may change (to remap RGB or raw imagery via greyscale conversion)