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

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