Skip to contents

Draw images

Plot a matrix, array, nativeRaster, or GDAL reader output as an image, placed by extent, in raster order.

ximage()
Plot an image
as_ximage()
Decode input to an image in raster order

Arrays and meshes

Work through the slices of arrays with more than two dimensions, and draw triangle and quad meshes with the colour mapping of ximage().

xslices() xpanels()
Slices of an array
xmesh()
Draw a triangle or quad mesh

Adornments

Companions that share the layout conventions of ximage(), contours and labels at cell centres, rectangles from extents.

xcontour()
Contour matrix data and draw
xtext()
Label the cells of a matrix in place
xrect()
Rectangles

Data

Small datasets used in examples, world topography and the R logo as RGB array and nativeRaster.

topo
topographic elevation
logo_a logo_n
R logo as an RGB image