The DENSITY function displays a matrix of data as a density plot. For instance,
density(ravel(grand(100, 1), 10) )
fills the Window with a colored checkerboard with ten squares. Each square of the checkerboard is filled according to the magnitude of the data, with colors defined by the current shading scheme.