Learn R Programming

largeVis (version 0.2.1.1)

ggManifoldMap: Visualize an embedding by ggplotting with images

Description

Identical to manifoldMap, but adds images to an existing ggplot2 object or creates one.

Usage

ggManifoldMap(ggObject = NULL, x, n = nrow(x), images, scale = 1)

Arguments

ggObject

a ggplot object. If not provided, a new ggplot object with geom_blank will be created.

x

A largeVis object or [N,D] matrix of coordinates.

n

The number of images to sample.

images

The images. A 3-D or 4-D array.

scale

Proportion to scale the images to.

Value

A ggplot object.

Details

See manifoldMap. Note that this function can be considerably slower to display than manifoldMap. It therefore should only be used if other features of ggplot2 are required.

If the objects in the list are matrix objects, or the array is 3-dimensional, the images will be treated as greyscale. If there is an additional dimension, it must have a length of 3 and be RGB color layers.