ggManifoldMap: Visualize an embedding by ggplotting with images

Description Usage Arguments Details Value

View source: R/visualize.R

Description

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

Usage

1
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.

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.

Value

A ggplot object.


largeVis documentation built on Feb. 17, 2018, 1:01 a.m.